DrawStatusText function Null safety comctl32

void DrawStatusText (
  1. int hDC,
  2. Pointer<RECT> lprc,
  3. Pointer<Utf16> pszText,
  4. int uFlags
)

The DrawStatusText function draws the specified text in the style of a status window with borders.

void DrawStatusTextW(
  HDC     hDC,
  LPCRECT lprc,
  LPCWSTR pszText,
  UINT    uFlags
);

Implementation

void DrawStatusText(
    int hDC, Pointer<RECT> lprc, Pointer<Utf16> pszText, int uFlags) {
  final _DrawStatusText = _comctl32.lookupFunction<
      Void Function(IntPtr hDC, Pointer<RECT> lprc, Pointer<Utf16> pszText,
          Uint32 uFlags),
      void Function(int hDC, Pointer<RECT> lprc, Pointer<Utf16> pszText,
          int uFlags)>('DrawStatusTextW');
  return _DrawStatusText(hDC, lprc, pszText, uFlags);
}