ID2D1Device5::CreateDeviceContext method (d2d1_3.h)

Creates a new device context with no initially assigned target.

Syntax

HRESULT CreateDeviceContext(
        D2D1_DEVICE_CONTEXT_OPTIONS options,
  [out] ID2D1DeviceContext5         **deviceContext5
);

Parameters

options

Type: D2D1_DEVICE_CONTEXT_OPTIONS

Options for creating the device context.

[out] deviceContext5

Type: ID2D1DeviceContext5**

The created device context.

Return value

Type: HRESULT

This method returns an HRESULT success or error code.

Requirements

Requirement Value
Target Platform Windows
Header d2d1_3.h
DLL D2d1.dll

See also

ID2D1Device5