GetWindowDC function Null safety user32

int GetWindowDC(
  1. int hWnd

The GetWindowDC function retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars. A window device context permits painting anywhere in a window, because the origin of the device context is the upper-left corner of the window instead of the client area.

HDC GetWindowDC(
  HWND hWnd


int GetWindowDC(int hWnd) {
  final _GetWindowDC = _user32.lookupFunction<IntPtr Function(IntPtr hWnd),
      int Function(int hWnd)>('GetWindowDC');
  return _GetWindowDC(hWnd);