IFileDataRetriever2::GetAbsoluteSourceFilePath

Gets the absolute path of the file.

Syntax

HRESULT GetAbsoluteSourceFilePath(
  LPWSTR pszAbsoluteSourceFilePath,
  ULONG *pcchAbsoluteSourceFilePathLength);

Parameters

  • pszAbsoluteSourceFilePath
    [in, out, size_is(*pcchAbsoluteSourceFilePathLength), unique] Returns the absolute path of the file.

  • pcchAbsoluteSourceFilePathLength
    [in, out] Specifies the number of characters in pszAbsoluteSourceFilePath. Returns the number of characters that are required to retrieve the directory when pszAbsoluteSourceFilePath is too small, or returns the number of characters written.

Return Value

  • S_OK

  • CO_E_PATHTOOLONG when the absolute file path is longer than MAX_PATH.

  • E_POINTER

  • HRESULT_FROM_WIN32(ERROR_MORE_DATA) when pszAbsoluteSourceFilePath is too small. In this situation, the required number of characters is returned in pcchAbsoluteSourceFilePathLength.

See Also

Reference

IFileDataRetriever2 Interface