SetWindowRgn function Null safety user32
The SetWindowRgn function sets the window region of a window. The window region determines the area within the window where the system permits drawing. The system does not display any portion of a window that lies outside of the window region
int SetWindowRgn(
HWND hWnd,
HRGN hRgn,
BOOL bRedraw
);
Implementation
int SetWindowRgn(int hWnd, int hRgn, int bRedraw) {
final _SetWindowRgn = _user32.lookupFunction<
Int32 Function(IntPtr hWnd, IntPtr hRgn, Int32 bRedraw),
int Function(int hWnd, int hRgn, int bRedraw)>('SetWindowRgn');
return _SetWindowRgn(hWnd, hRgn, bRedraw);
}