SendNotifyMessage function user32

Win32Result<bool> SendNotifyMessage(
  1. HWND hWnd,
  2. int msg,
  3. WPARAM wParam,
  4. LPARAM lParam,
)

Sends the specified message to a window or windows.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-sendnotifymessagew.

Implementation

Win32Result<bool> SendNotifyMessage(
  HWND hWnd,
  int msg,
  WPARAM wParam,
  LPARAM lParam,
) {
  resolveGetLastError();
  final result_ = _SendNotifyMessage(hWnd, msg, wParam, lParam);
  return .new(value: result_ != FALSE, error: GetLastError());
}