Gets the device associated with a device context.
void GetDevice( ID2D1Device **device );
When this method returns, contains the address of a pointer to a Direct2D device associated with this device context.
This method does not return a value.
The application can retrieve the device even if it is created from an earlier render target code-path. The application must use an ID2D1DeviceContext interface and then call GetDevice. Some functionality for controlling all of the resources for a set of device contexts is maintained only on an ID2D1Device object.
|Minimum supported client||Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]|