---
name: "DispatchMessageW"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/DispatchMessageW"
---

# DispatchMessageW(3w)

## NAME

**DispatchMessageW** (USER32.@)

## SYNOPSIS

LRESULT DispatchMessageW\
  (\
   const MSG\* *msg*\
  )

## DESCRIPTION

DispatchMessageW (**USER32**.@) Process a message.

Process the message specified in the structure \*\_msg\_.

If the lpMsg parameter points to a **WM\_TIMER** message and the parameter of the **WM\_TIMER** message is not **NULL**, the lParam parameter points to the function that is called instead of the window procedure. The function stored in lParam (timer callback) is protected from causing page-faults.

The message must be valid.

## RETURNS

DispatchMessage() returns the result of the window procedure invoked.

## CONFORMANCE

ECMA-**234**, Win32

## IMPLEMENTATION

Declared in **"winuser.h"**.

Implemented in **"dlls/user32/message.c"**.

Debug channel **"msg"**.
