Retrieves the name of the document.
Syntax
HRESULT GetName(
DOCUMENTNAMETYPE dnt,
BSTR *pbstrName
);
Parameters
- dnt
- [in] Flag that specifies the document type. This must be one of the values in the DOCUMENTNAMETYPE enumerated type.
- pbstrName
- [out] Address of a string that contains the name of the document.
Return Value
Returns S_OK if successful, or an error code otherwise.