Platform SDK: Agent |
HRESULT GetCount( long * pdwCount // address of a variable for number of alternatives );
Retrieves the number of Command alternatives passed to an IAgentNotifySink::Command callback.
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, GetCount returns 1. If GetCount returns zero (0), the speech recognition engine detected spoken input but determined that there was no matching command.