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.
This method gets the identifier associated with the grammar when it is created. The application sets the grammar identifier by calling ISpRecoContext::CreateGrammar.
HRESULT GetGrammarId(ULONGLONG* pullGrammarId);
Parameters
- pullGrammarId
[out] Pointer to the grammar identifier.
Return Values
The following table shows the possible return values.
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_POINTER | pullGrammarId is invalid or bad. |
Remarks
The grammar identifier is set in the SPPHRASE object when a recognition is sent to the application (see ISpPhrase::GetPhrase).
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: Sapi.h, Sapi.idl.
Link Library: Sapilib.lib.
See Also
ISpRecoGrammar | SAPI Interfaces
Send Feedback on this topic to the authors