Initializes a debug document helper with a given name and initial attributes.
Syntax
HRESULT Init( IDebugApplication *pda, LPCOLESTR pszShortName, LPCOLESTR pszLongName, TEXT_DOC_ATTR docAttr );
Parameters
- pda
- [in] Address of an IDebugApplication interface.
- pszShortName
- [in] Address of a string that contains the name of the document using the 8.3 naming convention.
- pszLongName
- [in] Address of a string that contains the name of the document using a naming convention that allows names longer than 8.3.
- docAttr
- [in] Flag from the TEXT_DOC_ATTR constant that indicates the document's attributes.
Return Value
Returns S_OK if successful, or an error code otherwise.