CreateDcScope
struct CreateDcScope
Helper to scope lifetime of an HDC retrieved via CreateDC/CreateCompatibleDC.
Deletes the HDC (if any) when disposed.
Creates a compatible HDC for hdc using CreateCompatibleDC.
public CreateDcScope(string driverName, string deviceName = null, DEVMODEW* lpInitData = null, bool informationOnly = true)