IAgentUserInput::GetItemText
[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]
HRESULT GetItemText(
Long dwItemIndex, // index of Command alternative
BSTR * pbszText // address of voice text for Command
);
Retrieves the voice text for a Command alternative passed to the IAgentNotifySink::Command callback.
- Returns S_OK to indicate the operation was successful.
-
dwItemIndex
-
The index of a Command alternative passed to the IAgentNotifySink::Command callback.
-
pbszText
-
Address of a BSTR that receives the value of the voice text for the Command.
If voice input was not the source for the command, for example, if the user selected the command from the character's pop-up menu, the server returns NULL for the Command's voice text.
See Also
IAgentUserInput::GetItemConfidence, IAgentUserInput::GetItemID, IAgentUserInput::GetAllItemData