DCompositionCreateDevice3 function
Creates a new DirectComposition device object, which can be used to create other DirectComposition objects.
Syntax
HRESULT STDAPI DCompositionCreateDevice3(
_In_opt_ IUnknown *renderingDevice,
_In_ REFIID iid,
_Out_ void **dcompositionDevice
);
Parameters
- renderingDevice [in, optional]
-
Type: IUnknown*
An optional pointer to a DirectX device to be used to create DirectComposition surface objects. Must be a pointer to an object implementing the IDXGIDevice or ID2D1Device interfaces.
- iid [in]
-
Type: REFIID
The identifier of the interface to retrieve. This must be one of __uuidof(IDCompositionDevice) or __uuidof(IDCompositionDesktopDevice).
- dcompositionDevice [out]
-
Type: void**
Receives an interface pointer to the newly created device object. The pointer is of the type specified by the iid parameter. This parameter must not be NULL.
Return value
Type: HRESULT
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|