次の方法で共有


ISpRecoGrammar::GetRecoContext (SAPI 5.3)

Microsoft Speech API 5.3

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
S_OK
E_POINTER