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