IInkWordList2::AddWords method (msinkaut.h)

Adds more than one word to an InkWordList in a single operation.

Syntax

HRESULT AddWords(
  [in] BSTR NewWords
);

Parameters

[in] NewWords

A BSTR of NULL separated words terminated by a double NULL containing the words to add to the InkWordList.

For more information about the BSTR data type, see Using the COM Library.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
S_FALSE
At least one word already exists in the list.
E_OUTOFMEMORY
Cannot allocate memory to complete the operation.
E_FAIL
An unspecified error occurred.
E_POINTER
A parameter contained an invalid pointer.
E_INK_EXCEPTION
An exception occurred inside the method.

Remarks

To access this method, first create and instance of the InkWordList Class, then call QueryInterface to get a pointer to the IInkWordList2 Interface. Use this pointer to call the AddWords Method.

Requirements

Requirement Value
Minimum supported client Windows XP Tablet PC Edition [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header msinkaut.h
Library InkObj.dll

See also

AddWord Method

IInkWordList2 Interface

InkWordList Class