Partager via


IInkStrokeDisp::Id

4/8/2010

Gets the identifier of an IInkStrokeDisp object.

Syntax

[propget] HRESULT get_ID ([out, retval] long *Id);

Parameters

  • Id
    Returns an identifier for the object.

    This property is read-only.

Return Value

HRESULT value Description

S_OK

Success.

E_INKEXCEPTION

An exception occurred while processing.

E_POINTER

The parameter is an invalid pointer.

E_FAIL

An unspecified error occurred.

E_UNEXPECTED

Unexpected parameter or property type.

Remarks

An object's identifier never changes.

Note

Accessing this property within certain message handlers can result in the underlying function being re-entered, causing unexpected results. Take care to avoid a reentrant call when handling any of the following messages: WM_ACTIVATE, WM_PAINT; WM_SYSCOMMAND if wParam is set to SC_HOTKEY or SC_TASKLIST; and WM_SYSKEYDOWN (when processing Alt-Tab or Alt-Esc key combinations). This is an issue with single-threaded apartment model applications.

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

Concepts

Windows Mobile Ink Reference