Microsoft Speech Platform
ISpRecoContext::GetContextState
ISpRecoContext::GetContextState retrieves the state of the recognition context.
HRESULT GetContextState(
SPCONTEXTSTATE *peContextState
);
Parameters
- peContextState
- [out] Address of the SPCONTEXTSTATE enumeration that receives the context state information.
Return values
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_POINTER | One of the pointers is invalid or bad. |
FAILED(hr) | Appropriate error message. |
Remarks
The default recognition context state for an ISpRecoContext object is SPCS_ENABLED.
Applications can use ISpRecoContext::SetContextState to set the context state.