MakeWordList function

Creates a word list.

Syntax


HRESULT WINAPI MakeWordList(
   HRECOGNIZER   hrec,
   WCHAR         *pBuffer,
   HRECOWORDLIST *phwl
);

Parameters

hrec

Handle to the recognizer.

pBuffer

Words to insert into the new word list. Separate words in this list with a \0 character and end the list with two \0 characters.

phwl

Handle to the new word list.

Return value

This function can return one of these values.

Return codeDescription
S_OK

Success.

E_FAIL

An unspecified error occurred.

E_POINTER

The pointer to the word list is incorrect.

E_INVALIDARG

An invalid argument was received.

E_OUTOFMEMORY

Unable to allocate memory to complete the operation.

TPC_S_TRUNCATED

An error is found in one of the words in the list. Possible errors include unsupported characters, spaces at the start or the end of the word or more than a single space between words. All words up to the incorrect word are added to the word list.

 

Requirements

Minimum supported client

Windows XP Tablet PC Edition [desktop apps only]

Minimum supported server

None supported

Header

Recapis.h

See also

AddWordsToWordList Function
SetWordList Function

 

 

Show: