Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Microsoft Speech API 5.3
ISpRecoGrammar::GetGrammarId
ISpRecoGrammar::GetGrammarId retrieves the identifier associated with the grammar when the grammar was created.
The grammar ID is set by the application by calling ISpRecoContext::CreateGrammar.
HRESULT GetGrammarId(
ULONGLONG *pullGrammarId
);
Parameters
- pullGrammarId
[out] Address of a ULONGLONG variable to receive the grammar ID.
Return values
Value |
S_OK |
E_POINTER |
Remarks
The grammar ID will be set in the SPPHRASE object when a recognition is sent to the application (see ISpPhrase::GetPhrase).