Share via


GetFileName Method

Gets the current item's file name, with the full path in Universal Naming Convention (UNC) format.

HRESULT GetDocFormat(
WCHAR wszFileName[],
DWORD dwSize,
DWORD *pdwLength
);

Parameters

wszFileName

[out] Contains the file name, including the full path as a null-terminated, Unicode string.

dwSize

[in] DWORD representing the size of wszFileName.

pdwLength

[out] Pointer to the DWORD that contains the number of characters written to the wszFileName string, not including NULL.

Return Value

If successful, returns S_OK, otherwise it returns an error value. For a list of error messages returned by Enterprise Search in Microsoft Office SharePoint Server 2007, see Protocol Handler Error Messages.

Remarks

If this method is implemented, the Filter Daemon uses the file name to access the file directly instead of binding to the stream.

See Also

Concepts

Protocol Handler Reference
IUrlAccessor Interface