ISRGramCFG::ListAppend

HRESULT ListAppend(TCHAR *pszListName, SDATA dWord);

Appends new words to an existing list.

· Returns NOERROR if successful, or one of these error values:

E_INVALIDARG
E_OUTOFMEMORY
SRERR_INVALIDCHAR
SRERR_INVALIDLIST
SRERR_NOTENOUGHDATA
SRERR_NOTSUPPORTED

pszListName

[in] Address of a buffer that contains the name of the list to which to append the words. If the list is not valid for the grammar, the member function returns an error value.

dWord

[in] Sequential list of SRWORD structures. (This is not an array, because the size of each structure varies according to its contents.)

If a word already exists in the list, the word's existing identifier is replaced with the new identifier. If a word does not already exist in the list, it is appended to the list.

If the engine does not support lists, it returns SRERR_NOTSUPPORTED.