IAgentCommand::GetVoice
[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]
HRESULT GetVoice(
BSTR * pbszVoice // address of Voice setting for Command
);
Retrieves the value of the Voice text property for a Command.
- Returns S_OK to indicate the operation was successful.
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