DrawCaption function Null safety user32

int DrawCaption(
  1. int hwnd,
  2. int hdc,
  3. Pointer<RECT> lprect,
  4. int flags
)

The DrawCaption function draws a window caption.

BOOL DrawCaption(
  HWND       hwnd,
  HDC        hdc,
  const RECT *lprect,
  UINT       flags
);

Implementation

int DrawCaption(int hwnd, int hdc, Pointer<RECT> lprect, int flags) {
  final _DrawCaption = _user32.lookupFunction<
      Int32 Function(
          IntPtr hwnd, IntPtr hdc, Pointer<RECT> lprect, Uint32 flags),
      int Function(
          int hwnd, int hdc, Pointer<RECT> lprect, int flags)>('DrawCaption');
  return _DrawCaption(hwnd, hdc, lprect, flags);
}