GetDC function user32
Retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-getdc.
Implementation
@pragma('vm:prefer-inline')
HDC GetDC(HWND? hWnd) => HDC(_GetDC(hWnd ?? nullptr));