Removes a loaded grammar from the speech port.
- int UnloadGrammar(const char* gram_name)
A null-terminated string identifying for the grammar being unloaded. This is the same identifier you gave the grammar when you loaded it.
No errors; this grammar is removed.
The port is not valid (either CreateClient has not been called or DestroyClient has been called prior to this call).
The operation failed because the port was shutting down.
The grammar identified by gram_name was not present. Nothing was removed.
An exception occurred while processing the request.
When you unload a grammar that has been activated, it will automatically be deactivated.