Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

Creates a new IInkStrokescollection for and IInkDispobject from existing IInkStrokeDispobjects.

Syntax

HRESULT CreateStrokes (
  [in, optional, defaultvalue(0)] VARIANT ids,
  [out, retval] IInkStrokes** strokes
);

Parameters

ids

[in, optional] Specifies an array of stroke IDs that exist in the IInkDispobject. The strokes with these IDs are added to a new IInkStrokescollection. The default value is NULL.

For more information about the VARIANT structure, see Using the Automation Library with Windows Mobile Ink.

strokes

[out, retval] Returns a new IInkStrokescollection.

Return Value

S_OK

Success.

E_POINTER

A parameter contained an invalid pointer.

E_INVALIDARG

Invalid VARIANT type (only VT_ARRAY | VT_I4 supported).

E_INK_EXCEPTION

An exception occurred inside the method.

E_OUTOFMEMORY

Cannot allocate memory to create the new IInkStrokescollection.

TPC_E_INVALID_STROKE

Stroke IDs that do not exist were passed to the method.

Remarks

If the ids parameter is NULL or an empty array, then an empty IInkStrokescollection is created.

Requirements

Header msinkaut.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile 6 Classic and later, Windows Mobile 6 Professional and later

See Also