Platform SDK: Agent

IAgentCommand::GetVoice

HRESULT GetVoice(
   BSTR * pbszVoice  // address of Voice setting for Command
);

Retrieves the value of the Voice text property for a Command.

pbszVoice
The address of a BSTR that receives the Voice text property for a Command.

A Command with its Voice property set and its Enabled property set to True will be voice-accessible. If its Caption property is also set it appears in the Voice Commands Window. If its Visible property is set to True, it appears in the character's pop-up menu.

See Also

IAgentCommand::SetVoice, IAgentCommands::Add, IAgentCommands::Insert