GetHandwritingStrokeIdForPointer function (shellhandwriting.h)

Retrieves the unique ID of the ink stroke associated with the specified pointer ID.

Syntax

HRESULT GetHandwritingStrokeIdForPointer(
  [in]  UINT32 pointerId,
  [out] UINT64 *handwritingStrokeId
);

Parameters

[in] pointerId

The pointer ID associated with the ink stroke.

[out] handwritingStrokeId

The ID of the ink stroke associated with the pointerId.

Return value

If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.

Remarks

Clients using the SetHandwritingState function to configure the current handwriting state to TF_HANDWRITING_POINTERDELIVERY must call this function to retrieve the unique ID of the stroke started by a WM_POINTERDOWN message (to pass to the RequestHandwritingForPointer function).

This function must be called on the same thread as the one handling the WM_POINTERDOWN message.

Requirements

Requirement Value
Header shellhandwriting.h