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,
) {
  final result_ = SendNotifyMessageW_Wrapper(hWnd, msg, wParam, lParam);
  return Win32Result(value: result_.value.i32 != FALSE, error: result_.error);
}