IUrlAccessor::GetCLSID Method

Gets the CLSID of a document type.

Syntax

HRESULT GetCLSID(      
    CLSID *pClsid
);

Parameters

  • pClsid
    [out]  Returns a pointer to the CLSID from the registry for document type. This is used for items with special IFilter associations to indicate the appropriate IFilter to use for that embedded document.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

If you do not provide an implementation for this method or the IUrlAccessor::GetDocFormat method, the Filter Daemon will make the association between the item's file extension and the Multipurpose Internet Mail Extensions (MIME) "Content Type". Implement this method when the extension(s) you are dealing with are supposed to have a different association than is indicated by the file extension or content type. For example if ".doc" items in your content source are not associated with Microsoft Word, this method should return the CLSID of the appropriate document source.