70 references to SafeNativeCompoundFileConstants
WindowsBase (70)
Base\MS\Internal\IO\Packaging\CompoundFile\CFStream.cs (6)
86
_safeIStream.Stat( out streamStat,
SafeNativeCompoundFileConstants
.STATFLAG_NONAME );
105
SafeNativeCompoundFileConstants
.STREAM_SEEK_CUR,
123
SafeNativeCompoundFileConstants
.STREAM_SEEK_SET,
171
translatedSeekOrigin =
SafeNativeCompoundFileConstants
.STREAM_SEEK_SET;
179
translatedSeekOrigin =
SafeNativeCompoundFileConstants
.STREAM_SEEK_CUR;
184
translatedSeekOrigin =
SafeNativeCompoundFileConstants
.STREAM_SEEK_END;
Base\MS\Internal\IO\Packaging\CompoundFile\NativeCompoundFileAPIs.cs (11)
75
grfMode |=
SafeNativeCompoundFileConstants
.STGM_READWRITE;
79
grfMode |=
SafeNativeCompoundFileConstants
.STGM_WRITE;
108
if (result ==
SafeNativeCompoundFileConstants
.S_OK)
141
if (result ==
SafeNativeCompoundFileConstants
.S_OK)
179
if (result ==
SafeNativeCompoundFileConstants
.S_OK)
213
if (result ==
SafeNativeCompoundFileConstants
.S_OK)
322
if (result ==
SafeNativeCompoundFileConstants
.S_OK)
353
if (result ==
SafeNativeCompoundFileConstants
.S_OK)
384
if (result ==
SafeNativeCompoundFileConstants
.S_OK)
417
if (result ==
SafeNativeCompoundFileConstants
.S_OK)
721
if (dlibMove < 0 && dwOrigin ==
SafeNativeCompoundFileConstants
.STREAM_SEEK_SET)
Base\MS\Internal\IO\Packaging\CompoundFile\PrivateUnsafeNativeCompoundFileMethods.cs (3)
215
if ((grfStatFlag & ~(
SafeNativeCompoundFileConstants
.STATFLAG_NONAME |
216
SafeNativeCompoundFileConstants
.STATFLAG_NOOPEN )) != 0)
227
returnValue.type =
SafeNativeCompoundFileConstants
.STGTY_LOCKBYTES;
Base\MS\Internal\IO\Packaging\StorageBasedPackageProperties.cs (6)
87
_grfMode =
SafeNativeCompoundFileConstants
.STGM_DIRECT
88
|
SafeNativeCompoundFileConstants
.STGM_SHARE_EXCLUSIVE;
548
if (hresult ==
SafeNativeCompoundFileConstants
.S_OK)
612
else if (hresult ==
SafeNativeCompoundFileConstants
.S_FALSE)
665
SafeNativeCompoundFileConstants
.PROPSETFLAG_ANSI,
816
if (hr ==
SafeNativeCompoundFileConstants
.STG_E_FILENOTFOUND)
Base\System\IO\Packaging\CompoundFile\StorageInfo.cs (11)
684
(GetStat().grfMode &
SafeNativeCompoundFileConstants
.STGM_READWRITE_Bits)
685
|
SafeNativeCompoundFileConstants
.STGM_SHARE_EXCLUSIVE,
690
if(
SafeNativeCompoundFileConstants
.S_OK != nativeCallErrorCode )
692
if( nativeCallErrorCode ==
SafeNativeCompoundFileConstants
.STG_E_ACCESSDENIED )
825
if( e.ErrorCode ==
SafeNativeCompoundFileConstants
.STG_E_ACCESSDENIED )
1125
(GetStat().grfMode &
SafeNativeCompoundFileConstants
.STGM_READWRITE_Bits)
1126
|
SafeNativeCompoundFileConstants
.STGM_SHARE_EXCLUSIVE,
1131
if(
SafeNativeCompoundFileConstants
.S_OK == nativeCallErrorCode )
1135
else if(
SafeNativeCompoundFileConstants
.STG_E_FILENOTFOUND != nativeCallErrorCode )
1385
else if(
SafeNativeCompoundFileConstants
.STGTY_STORAGE == enumElement.type )
1394
else if(
SafeNativeCompoundFileConstants
.STGTY_STREAM == enumElement.type )
Base\System\IO\Packaging\CompoundFile\StorageRoot.cs (19)
138
int openFlags =
SafeNativeCompoundFileConstants
.STGM_SHARE_EXCLUSIVE;
144
openFlags |=
SafeNativeCompoundFileConstants
.STGM_READWRITE;
148
openFlags |=
SafeNativeCompoundFileConstants
.STGM_READ;
165
openFlags |
SafeNativeCompoundFileConstants
.STGM_CREATE,
183
case
SafeNativeCompoundFileConstants
.S_OK:
276
grfMode |=
SafeNativeCompoundFileConstants
.STGM_CREATE;
327
grfMode |=
SafeNativeCompoundFileConstants
.STGM_SHARE_EXCLUSIVE;
331
grfMode |=
SafeNativeCompoundFileConstants
.STGM_SHARE_DENY_WRITE;
335
grfMode |=
SafeNativeCompoundFileConstants
.STGM_SHARE_DENY_READ; // Note that this makes little sense when we don't support combination of flags
339
grfMode |=
SafeNativeCompoundFileConstants
.STGM_SHARE_DENY_NONE;
347
if( 0 != (grfMode &
SafeNativeCompoundFileConstants
.STGM_CREATE))
376
case
SafeNativeCompoundFileConstants
.S_OK:
379
case
SafeNativeCompoundFileConstants
.STG_E_FILENOTFOUND:
382
case
SafeNativeCompoundFileConstants
.STG_E_INVALIDFLAG:
502
root.Stat( out rootSTAT,
SafeNativeCompoundFileConstants
.STATFLAG_NONAME );
504
readOnly =(
SafeNativeCompoundFileConstants
.STGM_WRITE != ( rootSTAT.grfMode &
SafeNativeCompoundFileConstants
.STGM_WRITE ) &&
505
SafeNativeCompoundFileConstants
.STGM_READWRITE != (rootSTAT.grfMode &
SafeNativeCompoundFileConstants
.STGM_READWRITE) );
Base\System\IO\Packaging\CompoundFile\StreamInfo.cs (14)
283
grfMode |=
SafeNativeCompoundFileConstants
.STGM_SHARE_EXCLUSIVE;
313
grfMode |=
SafeNativeCompoundFileConstants
.STGM_CREATE;
361
if(
SafeNativeCompoundFileConstants
.S_OK != nativeCallErrorCode &&
362
SafeNativeCompoundFileConstants
.STG_E_FILEALREADYEXISTS != nativeCallErrorCode )
495
grfMode |=
SafeNativeCompoundFileConstants
.STGM_SHARE_EXCLUSIVE;
518
grfMode |=
SafeNativeCompoundFileConstants
.STGM_CREATE;
625
if(
SafeNativeCompoundFileConstants
.STG_E_INVALIDFLAG == nativeCallErrorCode )
630
else if (
SafeNativeCompoundFileConstants
.S_OK != nativeCallErrorCode )
663
if(
SafeNativeCompoundFileConstants
.S_OK != nativeCallErrorCode )
721
return
SafeNativeCompoundFileConstants
.S_OK == parentStorage.SafeIStorage.OpenStream(
724
SafeNativeCompoundFileConstants
.STGM_READ |
SafeNativeCompoundFileConstants
.STGM_SHARE_EXCLUSIVE,
752
cloneStream.Seek( 0,
SafeNativeCompoundFileConstants
.STREAM_SEEK_SET, out dummy );
795
core.safeIStream.Stat( out mySTATs,
SafeNativeCompoundFileConstants
.STATFLAG_NONAME );