IDCompositionDesktopDevice interface (dcomp.h)

An application must use the IDCompositionDesktopDevice interface in order to use DirectComposition in a Win32 desktop application. This interface allows the application to connect a visual tree to a window and to host layered child windows for composition

Inheritance

The IDCompositionDesktopDevice interface inherits from IDCompositionDevice2. IDCompositionDesktopDevice also has these types of members:

Methods

The IDCompositionDesktopDevice interface has these methods.

 
IDCompositionDesktopDevice::CreateSurfaceFromHandle

Creates a new composition surface object that wraps an existing composition surface.
IDCompositionDesktopDevice::CreateSurfaceFromHwnd

Creates a wrapper object that represents the rasterization of a layered window, and that can be associated with a visual for composition.
IDCompositionDesktopDevice::CreateTargetForHwnd

Creates a composition target object that is bound to the window that is represented by the specified window handle.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header dcomp.h

See also

IDCompositionDevice2