Shell_NotifyIcon function Null safety shell32

int Shell_NotifyIcon(
  1. int dwMessage,
  2. Pointer<NOTIFYICONDATA> lpData
)

Sends a message to the taskbar's status area.

BOOL Shell_NotifyIconW(
  DWORD dwMessage,
  NOTIFYICONDATA *lpData
);

Implementation

int Shell_NotifyIcon(int dwMessage, Pointer<NOTIFYICONDATA> lpData) {
  final _Shell_NotifyIcon = _shell32.lookupFunction<
      Int32 Function(Uint32 dwMessage, Pointer<NOTIFYICONDATA> lpData),
      int Function(
          int dwMessage, Pointer<NOTIFYICONDATA> lpData)>('Shell_NotifyIconW');
  return _Shell_NotifyIcon(dwMessage, lpData);
}