BeginPaint function Null safety user32
- int hWnd,
- Pointer<
PAINTSTRUCT> lpPaint
The BeginPaint function prepares the specified window for painting and fills a PAINTSTRUCT structure with information about the painting.
HDC BeginPaint(
HWND hWnd,
LPPAINTSTRUCT lpPaint
);
Implementation
int BeginPaint(int hWnd, Pointer<PAINTSTRUCT> lpPaint) {
final _BeginPaint = _user32.lookupFunction<
IntPtr Function(IntPtr hWnd, Pointer<PAINTSTRUCT> lpPaint),
int Function(int hWnd, Pointer<PAINTSTRUCT> lpPaint)>('BeginPaint');
return _BeginPaint(hWnd, lpPaint);
}