C# Class Eclipse.IndexingService.FilterLoader

FilterLoader finds the dll and ClassID of the COM object responsible for filtering a specific file extension. It then loads that dll, creates the appropriate COM object and returns a pointer to an IFilter instance
Afficher le fichier Open project: maxpavlov/FlexNet Class Usage Examples

Méthodes publiques

Méthode Description
LoadIFilterFromIPersistFile ( string path ) : IFilter
LoadIFilterFromIPersistFile ( string path, string extension ) : IFilter
LoadIFilterFromStream ( byte bytes, bool safeText ) : IFilter

Firstly, this method try to load OLE stream from given binary array. If failed, then default filter or Null filter will be last choice.

LoadIFilterFromStream ( byte bytes, string extension ) : IFilter
ReleaseClassCache ( ) : void

Private Methods

Méthode Description
BindIFilterFromStorage ( IStorage pStg, IntPtr pUnkOuter, IFilter &ppIUnk ) : int
BindIFilterFromStream ( IStream pStm, IntPtr pUnkOuter, IFilter &ppIUnk ) : int
CreateILockBytesOnHGlobal ( HandleRef hGlobal, bool fDeleteOnRelease ) : ILockBytes
CreateStreamOnHGlobal ( IntPtr hGlobal, bool fDeleteOnRelease, IStream &ppstm ) : void
FreeLibrary ( IntPtr hModule ) : bool
GetClassFactory ( string ext, string dllName, string filterPersistClass ) : IClassFactory
GetClassFactoryFromDll ( string ext, string dllName, string filterPersistClass ) : IntPtr
GetFilterDllAndClass ( string ext, string &dllName, string &filterPersistClass ) : bool
GetFilterDllAndClassFromPersistentHandler ( string persistentHandlerClass, string &dllName, string &filterPersistClass ) : bool
GetPersistentHandlerClass ( string ext, bool searchContentType ) : string
GetPersistentHandlerClassFromContentType ( string ext ) : string
GetPersistentHandlerClassFromDocumentType ( string ext ) : string
GetPersistentHandlerClassFromExtension ( string ext ) : string
GetProcAddress ( IntPtr hModule, string lpProcName ) : IntPtr
InitIFilter ( IFilter filter ) : IFilter
LoadFilterFromDll ( string ext, string dllName, string filterPersistClass ) : IFilter
LoadIFilter ( string ext ) : IFilter
LoadIFilter ( string pwcsPath, [ pUnkOuter, IFilter &ppIUnk ) : int
LoadLibrary ( string lpFileName ) : LibHandle
ReadStrFromHKLM ( string key ) : string
ReadStrFromHKLM ( string key, string value ) : string
StgOpenStorageOnILockBytes ( ILockBytes iLockBytes, IStorage pStgPriority, int grfMode, int sndExcluded, int reserved ) : IStorage

Method Details

LoadIFilterFromIPersistFile() public static méthode

public static LoadIFilterFromIPersistFile ( string path ) : IFilter
path string
Résultat IFilter

LoadIFilterFromIPersistFile() public static méthode

public static LoadIFilterFromIPersistFile ( string path, string extension ) : IFilter
path string
extension string
Résultat IFilter

LoadIFilterFromStream() public static méthode

Firstly, this method try to load OLE stream from given binary array. If failed, then default filter or Null filter will be last choice.
public static LoadIFilterFromStream ( byte bytes, bool safeText ) : IFilter
bytes byte
safeText bool if true, select default filter.
Résultat IFilter

LoadIFilterFromStream() public static méthode

public static LoadIFilterFromStream ( byte bytes, string extension ) : IFilter
bytes byte
extension string
Résultat IFilter

ReleaseClassCache() public static méthode

public static ReleaseClassCache ( ) : void
Résultat void