ISpRecoGrammar::GetRecoContext

Microsoft Speech SDK

The Microsoft.com Speech website Microsoft Speech SDK SAPI 5.1

ISpRecoGrammar::GetRecoContext

ISpRecoGrammar::GetRecoContext retrieves the ISpRecoContext object that created this grammar. If this method succeeds, the application using this method must call Release() on the SpRecoContext object returned.

HRESULT GetRecoContext(
   ISpRecoContext   **ppRecoCtxt
);

Parameters

ppRecoCtxt
[out] Address of a pointer to an ISpRecoContext interface that receives the recognition context object pointer.

Return values

Value Description
S_OK Function completed successfully.
E_POINTER ppRecoCtxt is invalid or bad.