SetWordList function (recapis.h)
Sets the word list for the current recognizer context to recognize.
Syntax
HRESULT SetWordList(
HRECOCONTEXT hrc,
HRECOWORDLIST hwl
);
Parameters
hrc
Handle to the recognizer context.
hwl
Handle to recognition word list to be used.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
The context is invalid or one of the parameters is an invalid pointer. |
|
The recognizer does not support this function. |
|
Unable to allocate memory to complete the operation. |
|
An invalid argument was received. |
|
The method was called after Process has been called. |
Remarks
The word list passed in as the second parameter must already exist. You create a word list by using the MakeWordList function. The SetWordList function does not alter the word list.
To clear the wordlist, pass NULL as the second parameter.
It is recommended that you limit the length of individual words in the wordlist to no more than 256 characters and limit memory allocation for wordlists to no more than 128 MB.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP Tablet PC Edition [desktop apps | UWP apps] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | recapis.h |
DLL | inkobjcore.dll |