IInkDesktopHost::CreateAndInitializeInkPresenter method (inkpresenterdesktop.h)

Creates an IInkPresenterDesktop object on an application thread, connects it to the app's DirectComposition visual tree, and sets the size of the object.

Syntax

HRESULT CreateAndInitializeInkPresenter(
  [in]  IUnknown *rootVisual,
  [in]  float    width,
  [in]  float    height,
  [in]  REFIID   riid,
  [out] void     **ppv
);

Parameters

[in] rootVisual

The IDCompositionVisual of the app.

[in] width

The width, in pixels, of the inking area.

[in] height

The height, in pixels, of the inking area.

[in] riid

A reference to the interface identifier of an IInkPresenterDesktop object.

[out] ppv

Address of a pointer variable that receives the interface pointer identified by riid.

Return value

If successful, returns the requested interface pointer. Otherwise, returns NULL.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header inkpresenterdesktop.h

See also

Complex ink sample

IInkDesktopHost

Pen and stylus interactions

Samples

Complex Ink sample

Simple ink sample