InkDesktopHost class

Implements the IInkDesktopHost interface.

An IInkDesktopHost object enables ink input, processing, and rendering through the creation of an app thread to host an IInkPresenterDesktop object and insert it into the app's DirectComposition visual tree.

Members

The InkDesktopHost class inherits from the IUnknown interface. InkDesktopHost also has these types of members:

Methods

The InkDesktopHost class has these methods.

Method Description
CreateAndInitializeInkPresenter Creates an IInkPresenterDesktop object on an application thread, connects it to the app's DirectComposition visual tree, and sets the size of the object.
CreateInkPresenter Creates an IInkPresenterDesktop object on an application thread.
QueueWorkItem Add an ink operation to a work queue for execution on the InkDesktopHost thread.

Creation\Access Functions

Call CoCreateInstance with the class identifier InkDesktopHost to retrieve a reference to the object.

CoCreateInstance(__uuidof(InkDesktopHost), 
  nullptr, 
  CLSCTX_INPROC_SERVER, 
  IID_PPV_ARGS(&_spInkHost));

Requirements

Requirement Value
Minimum supported client
Windows 10 [desktop apps only]
Minimum supported server
None supported
Header
InkPresenterDesktop.h
IDL
InkPresenterDesktop.idl
IID
IID_IInkDesktopHost is defined as 4ce7d875-a981-4140-a1ff-ad93258e8d59

Ink presenter classes, Pen and stylus interactions, Ink Analysis sample, Simple inking sample, Complex inking sample