Share via


Implementing the COM Interface Methods

Note

Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.

 

The filter implements the IUnknown methods for both the filter class and the filter-class factory. The following table lists, in vtable order, the filter-specific interfaces and methods that the filter must also implement. The filter must implement at least one, and can implement several, of the IPersist derived interfaces.

Interface Method
IClassFactory
CreateInstance
LockServer
IFilter
Init
GetChunk
GetText
GetValue
BindRegion
IPersist
GetClassID
IPersistFile
IsDirty
Load
Save
SaveCompleted
GetCurFile
IPersistStorage
IsDirty
InitNew
Load
Save
HandsOffStorage
IPersistStream
IsDirty
Load
Save
GetSizeMax

 

The reference page for each method specifies the parameters and functional behavior for that method. Each reference page also gives the result codes to implement for that method. The reference pages for the IFilter methods give the interface-specific (FACILITY_ITF) result codes to be implemented, and the content-indexing client can also handle any of the generic (FACILITY_NULL and FACILITY_WIN32) result codes.

Secure Code Practices