IAccessible::get_accHelpTopic method (oleacc.h)
The IAccessible::get_accHelpTopic method retrieves the full path of the WinHelp file that is associated with the specified object; it also retrieves the identifier of the appropriate topic within that file. Not all objects support this property. This property is rarely supported or used by applications
Syntax
HRESULT get_accHelpTopic(
[out] BSTR *pszHelpFile,
[in] VARIANT varChild,
long *pidTopic
);
Parameters
[out] pszHelpFile
Type: BSTR*
Address of a BSTR that receives the full path of the WinHelp file that is associated with the specified object.
[in] varChild
Type: VARIANT
Specifies whether the retrieved Help topic belongs to the object or one of the object's child elements. This parameter is either CHILDID_SELF (to obtain a Help topic for the object) or a child ID (to obtain a Help topic for one of the object's child elements). For more information about initializing the VARIANT, see How Child IDs Are Used in Parameters.
pidTopic
Type: long*
[out, retval] Address of a variable that identifies the Help file topic associated with the specified object. This value is used as the context identifier of the desired topic that passes to the WinHelp function. When calling WinHelp to display the topic, set the uCommand parameter to HELP_CONTEXT, cast the value pointed to by pidTopic to a DWORD, and pass it as the dwData parameter.
Return value
Type: HRESULT
If successful, returns S_OK.
If not successful, returns one of the values in the table that follows, or another standard COM error code. Servers return these values, but clients must always check output parameters to ensure that they contain valid values. For more information, see Checking IAccessible Return Values.
Error | Description |
---|---|
|
No Help information is available. |
|
An argument is not valid. |
|
The object does not support this property. |
Remarks
Getting information from a Help file might be time and memory intensive.
Note to server developers: This property provides access to a Help topic in WinHelp, whereas IAccessible::get_accHelp returns a string. Objects are not required to support both IAccessible::get_accHelp and IAccessible::get_accHelpTopic, but they must support at least one. If they can easily return a string, they must support IAccessible::get_accHelp; otherwise they must support IAccessible::get_accHelpTopic. If both are supported, IAccessible::get_accHelpTopic provides more detailed information.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | oleacc.h |
Library | Oleacc.lib |
DLL | Oleacc.dll |
Redistributable | Active Accessibility 1.3 RDK on Windows NT 4.0 with SP6 and later and Windows 95 |