ISpLexicon2::LoadLexiconFromFile (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

ISpLexicon2::LoadLexiconFromFile

ISpLexicon2::LoadLexiconFromFile loads a lexicon from a file.

HRESULT LoadLexiconFromFile  (
   LPCWSTR          pszFileName,
   DWORD            dwReserved
);

Parameters

pszFileName
[in] A pointer to a null-terminated text string that is the lexicon file name.
dwReserved
[in] Reserved for future use.

Return values

Value Description
S_OK Function completed successfully.
E_POINTER pszFileName is not a valid write pointer.
E_INVALIDARG At least one of the parameters is invalid.
E_OUTOFMEMORY Exceeded available memory.
SPERR_ALREADY_INITIALIZED The object is already initialized.
FAILED(hr) Appropriate error message.