HRESULT GetDocumentation(
int index,
BSTR FAR* pBstrName,
BSTR FAR* pBstrDocString,
unsigned long FAR* pdwHelpContext,
BSTR FAR* pBstrHelpFile
);
Retrieves the library's documentation string, the complete Help file name and path, and the context identifier for the library Help topic in the Help file.
The return value obtained from the returned HRESULT is one of the following:
Return value | Meaning |
---|---|
S_OK | Success. |
STG_E_INSUFFICIENTMEMORY | Out of memory. |
E_INVALIDARG | One or more of the arguments is invalid. |
TYPE_E_IOERROR | The function could not write to the file. |
TYPE_E_INVDATAREAD | The function could not read from the file. |
TYPE_E_UNSUPFORMAT | The type library has an older format. |
TYPE_E_INVALIDSTATE | The type library could not be opened. |
TYPE_E_ELEMENTNOTFOUND | The element was not found. |
The caller should free the BSTR parameters pBstrName, pBstrDocString, and pBstrHelpFile.
for (i = 0; i < utypeinfoCount; i++)
{
CHECKRESULT(ptlib->GetDocumentation(i, &bstrName, NULL, NULL, NULL));
.
.
.
SysFreeString(bstrName);
}