Share via


AddWordsToWordList Function

AddWordsToWordList Function

Adds one or more words to the word list.

Syntax

[C++]

HRESULT WINAPI AddWordsToWordList(
  HRECOWORDLIST hwl,
  WCHAR *pwcWords
);

Parameters

hwl

[in] Handle to the word list.

pwcWords

[in] Words to add to the word list. Separate words in this list with a \0 character and end the list with two \0 characters. Words that already exist in the list are not added.

Return Value

HRESULT value Description
S_OK Success.
E_FAIL An unspecified error occurred.
E_POINTER The pointer to the word list is incorrect.