InvertRect function Null safety user32

int InvertRect (
  1. int hDC,
  2. Pointer<RECT> lprc
)

The InvertRect function inverts a rectangle in a window by performing a logical NOT operation on the color values for each pixel in the rectangle's interior.

BOOL InvertRect(
  HDC        hDC,
  const RECT *lprc
);

Implementation

int InvertRect(int hDC, Pointer<RECT> lprc) {
  final _InvertRect = _user32.lookupFunction<
      Int32 Function(IntPtr hDC, Pointer<RECT> lprc),
      int Function(int hDC, Pointer<RECT> lprc)>('InvertRect');
  return _InvertRect(hDC, lprc);
}