1 out of 1 rated this helpful - Rate this topic

WM_NULL message

Applies to: desktop apps only

Performs no operation. An application sends the WM_NULL message if it wants to post a message that the recipient window will ignore.

A window receives this message through its WindowProc function.

#define WM_NULL                         0x0000

Parameters

wParam

This parameter is not used.

lParam

This parameter is not used.

Return value

Type: LRESULT

An application returns zero if it processes this message.

Remarks

For example, if an application has installed a WH_GETMESSAGE hook and wants to prevent a message from being processed, the GetMsgProc callback function can change the message number to WM_NULL so the recipient will ignore it.

As another example, an application can check if a window is responding to messages by sending the WM_NULL message with the SendMessageTimeout function.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

See also

Windows Overview

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
WM_NULL

After clicking on X button to close window, it is virtually flooded by WM_NULL messages. But no one message WM_CLOSE. Where's the problem? My window uses regions set by SetWindowRgn.

Value
WM_NULL = &H0