Platform SDK: Agent

IAgentCommandEx::GetHelpContextID

HRESULT GetHelpContextID(
   long * pulID  //  address of command's help topic ID
);

Retrieves the HelpContextID for a Command object.

pulID
Address of a variable that receives the context number of the help topic associated with the Command object.

If you've created a Windows Help file for your application and set your character's HelpFile property to this file, Microsoft Agent automatically calls Help when HelpModeOn is set to True and the user selects the command. If there is a context number in the HelpContextID, Agent calls Help and searches for the topic identified by the current context number. The current context number is the value of HelpContextID for the command.

Note  Building a Help file requires the Microsoft Windows Help Compiler.

See Also

IAgentCommandEx::SetHelpContextID, IAgentCharacterEx::SetHelpModeOn, IAgentCharacterEx::SetHelpFileName