Returns the full path, including the file name, to the document's source file.
Syntax
HRESULT GetPathName( BSTR *pbstrLongName, BOOL *pfIsOriginalFile );
Parameters
- pbstrLongName
- [out] Address of a string that contains the full path of the document.
- pfIsOriginalFile
- [out] Address of a Boolean value that is set to TRUE if the path refers to the original file, or FALSE if the path refers to a newly created temporary file.
Return Value
Returns S_OK if successful, or an error code otherwise.