ISpRecoContext::GetContextState (Windows Embedded CE 6.0)
1/6/2010
This method gets the state of the speech recognition context.
Syntax
HRESULT GetContextState(
SPCONTEXTSTATE* peContextState
);
Parameters
- peContextState
[out] Pointer to a value specifying the state of the speech recognition context. Possible values are defined for the SPCONTEXTSTATE enumeration.
Return Value
The following table shows the possible 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.
Requirements
Header | sapi.h, sapi.idl |
Library | sapilib.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |