You are reading help file online using chmlib.com
|
ISpRecoGrammar::LoadCmdFromFile loads a SAPI 5 command and control grammar from a file. The file can either be a compiled or uncompiled grammar file. To modify the rules of the grammar after it has been loaded, specify SPLO_DYNAMIC for the Options parameter, otherwise specify the SPLO_STATIC flag.
HRESULT LoadCmdFromFile(
const WCHAR *pszFileName,
SPLOADOPTIONS Options
);
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | pszFileName is invalid or bad. Alternatively, Options is neither SPLO_STATIC nor SPLO_DYNAMIC. |
FAILED(hr) | Appropriate error message. |
You are reading help file online using chmlib.com
|