Platform SDK: Agent

IAgentCommandsEx::GetVoiceCaption

HRESULT GetVoiceCaption(
   BSTR * pbszVoiceCaption  // address of command's voice caption
);

Retrieves the VoiceCaption for a Commands object.

pbszVoiceCaption
The address of a BSTR that receives the value of the Caption text displayed for a Command.

The text returned is that set for your Commands object and appears in the Voice Commands window when your client application is input-active.

This property applies only to your client application's use of the character; the setting does not affect other clients of the character or other characters of your client application.

See Also

IAgentCommandsEx::SetVoiceCaption