IAgentUserInput::GetItemID
[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]
HRESULT GetItemID(
long dwItemIndex, // index of Command alternative
long * pdwCommandID // address of a variable for number of alternatives
);
Retrieves the identifier of a Command alternative passed to an IAgentNotifySink::Command callback.
- Returns S_OK to indicate the operation was successful.
-
dwItemIndex
-
The index of the Command alternative passed to the IAgentNotifySink::Command callback.
-
pdwCommandID
-
Address of a variable that receives the ID of a Command.
If voice input triggers the IAgentNotifySink::Command callback, the server returns the IDs for any matching Commands defined by your application.
See Also
IAgentUserInput::GetItemConfidence, IAgentUserInput::GetItemText, IAgentUserInput::GetAllItemData