IDirectManipulationManager::CreateViewport method (directmanipulation.h)

The factory method that is used to create a new IDirectManipulationViewport object.

The viewport manages the interaction state and mapping of input to output actions.

Syntax

HRESULT CreateViewport(
  [in, optional] IDirectManipulationFrameInfoProvider *frameInfo,
  [in]           HWND                                 window,
  [in]           REFIID                               riid,
  [out, retval]  void                                 **object
);

Parameters

[in, optional] frameInfo

The frame info provider for the viewport.

[in] window

The handle of the main app window to associate with the viewport.

[in] riid

IID to the interface.

[out, retval] object

The new IDirectManipulationViewport object.

Return value

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

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header directmanipulation.h

See also

IDirectManipulationManager