ISpSREngine::SetSLMState
Other versions of this page are also available for the following:
8/28/2008
This method sets the SLM state of the grammar by activating or deactivating dictation.
Syntax
HRESULT SetSLMState(
void* pvEngineGrammar,
SPRULESTATE NewState
);
Parameters
- pvEngineGrammar
[in] Pointer to the grammar for the engine, as retrieved from a prior call to the ISpSREngine::OnCreateGrammar method.
- NewState
[in] Grammar rule state. Possible values are defined for the SPRULESTATE enumeration.
Return Value
The following table shows the possible return values.
Value | Description |
---|---|
S_OK |
Function completed successfully. |
FAILED(hr) |
Appropriate error message. |
Requirements
Header | sapiddk.h, sapiddk.idl |
Library | sapilib.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |