ITypeLib::GetDocumentation method (oaidl.h)

Retrieves the documentation string for the library, the complete Help file name and path, and the context identifier for the library Help topic in the Help file.

Syntax

HRESULT GetDocumentation(
  [in]  INT   index,
  [out] BSTR  *pBstrName,
  [out] BSTR  *pBstrDocString,
  [out] DWORD *pdwHelpContext,
  [out] BSTR  *pBstrHelpFile
);

Parameters

[in] index

The index of the type description whose documentation is to be returned. If index is -1, then the documentation for the library itself is returned.

[out] pBstrName

The name of the specified item. If the caller does not need the item name, then pBstrName can be null.

[out] pBstrDocString

The documentation string for the specified item. If the caller does not need the documentation string, then pBstrDocString can be null..

[out] pdwHelpContext

The Help context identifier (ID) associated with the specified item. If the caller does not need the Help context ID, then pdwHelpContext can be null.

[out] pBstrHelpFile

The fully qualified name of the Help file. If the caller does not need the Help file name, then pBstrHelpFile can be null.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
E_INVALIDARG
One or more of the arguments is not valid.
STG_E_INSUFFICIENTMEMORY
Insufficient memory to complete the operation.

Remarks

The caller should free the parameters pBstrName, pBstrDocString, and pBstrHelpFile.

Requirements

Requirement Value
Target Platform Windows
Header oaidl.h

See also

ITypeLib