Compartir a través de


ISpRecoGrammar::GetGrammarId (Windows CE 5.0)

Send Feedback

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

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.