ISpRecoGrammar::GetGrammarId (Windows Embedded CE 6.0)
1/6/2010
This method gets the identifier associated with the grammar when it is created. The application sets the grammar identifier by calling ISpRecoContext::CreateGrammar.
Syntax
HRESULT GetGrammarId(
ULONGLONG* pullGrammarId
);
Parameters
- pullGrammarId
[out] Pointer to the grammar identifier.
Return Value
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
Header | sapi.h, sapi.idl |
Library | sapilib.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |