ISpRecoGrammar::GetGrammarId (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

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 Description
S_OK Function completed successfully.
E_POINTER pullGrammarId is invalid or bad.

Remarks

The grammar ID will be set in the SPPHRASE object when a recognition is sent to the application (see ISpPhrase::GetPhrase).