GetDocFormat Method

The GetDocFormat method of the IUrlAccessor interface returns the document format represented as a Multipurpose Internet Mail Extensions (MIME) string.

Parameters

wszDocFormat    [out, length_is(*pdwLength), size_is(dwSize)] Pointer to a wszDocFormat that contains a string buffer where the MIME type for the current item will be written.

dwSize    [in] Pointer to a DWORD that contains the size of the wszDocFormat string buffer.

pdwLength   [in] Pointer to a DWORD that contains the number of characters written to the wszDocFormat string buffer.

Return Value

For a list of error messages returned by Microsoft Office SharePoint Portal Server 2003 protocol handlers, see Protocol Handler Error Messages.

Remarks

The Filter Daemon makes the association between the item's file extension and the MIME "Content Type" if you do not provide an implementation for the GetDocFormat or GetCLSID methods. Implement this method when the extensions you are dealing with are supposed to have a different association from what is indicated by the file extension or content type. For example if ".doc" items in your content source are not associated with Microsoft Office Word, this method should return the MIME string of the appropriate document source.

Requirements

Platforms: Microsoft Windows Server 2003