Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 |