Microsoft Speech SDK
SAPI 5.1
ISpSREngine::OnDeleteGrammar
ISpSREngine::OnDeleteGrammar notifies the engine that a recognition grammar is deleted. By the time this method is called, any rules or a loaded SLM in this grammar will already have been deleted.
HRESULT OnDeleteGrammar(
void *pvEngineGrammar
);
Parameters
- pvEngineGrammar
- [in] The engine's grammar pointer for this grammar, as returned from a previous call to the OnCreateGrammar method.
Return values
Value | Description |
---|---|
S_OK | Function completed successfully. |
FAILED(hr) | Appropriate error message. |