ShellAbout function Null safety shell32

int ShellAbout(
  1. int hWnd,
  2. Pointer<Utf16> szApp,
  3. Pointer<Utf16> szOtherStuff,
  4. int hIcon
)

Displays a ShellAbout dialog box.

INT ShellAboutW(
  HWND    hWnd,
  LPCWSTR szApp,
  LPCWSTR szOtherStuff,
  HICON   hIcon
);

Implementation

int ShellAbout(
    int hWnd, Pointer<Utf16> szApp, Pointer<Utf16> szOtherStuff, int hIcon) {
  final _ShellAbout = _shell32.lookupFunction<
      Int32 Function(IntPtr hWnd, Pointer<Utf16> szApp,
          Pointer<Utf16> szOtherStuff, IntPtr hIcon),
      int Function(int hWnd, Pointer<Utf16> szApp, Pointer<Utf16> szOtherStuff,
          int hIcon)>('ShellAboutW');
  return _ShellAbout(hWnd, szApp, szOtherStuff, hIcon);
}