MessageBox function Null safety user32

int MessageBox(
  1. int hWnd,
  2. Pointer<Utf16> lpText,
  3. Pointer<Utf16> lpCaption,
  4. int uType
)

Displays a modal dialog box that contains a system icon, a set of buttons, and a brief application-specific message, such as status or error information. The message box returns an integer value that indicates which button the user clicked.

int MessageBoxW(
  HWND    hWnd,
  LPCWSTR lpText,
  LPCWSTR lpCaption,
  UINT    uType
);

Implementation

int MessageBox(
        int hWnd, Pointer<Utf16> lpText, Pointer<Utf16> lpCaption, int uType) =>
    _MessageBox(hWnd, lpText, lpCaption, uType);