GetDC function Null safety user32
- int hWnd
The GetDC function retrieves a handle to a device context (DC) for the client area of a specified window or for the entire screen. You can use the returned handle in subsequent GDI functions to draw in the DC. The device context is an opaque data structure, whose values are used internally by GDI.
HDC GetDC(
HWND hWnd
);
Implementation
int GetDC(int hWnd) {
final _GetDC = _user32.lookupFunction<IntPtr Function(IntPtr hWnd),
int Function(int hWnd)>('GetDC');
return _GetDC(hWnd);
}