PeekMessageW3w
Peekmessagew check queue for messages
Usage
BOOL32 PeekMessageW
(
LPMSG32 lpmsg,
HWND32 hwnd,
UINT32 min,
UINT32 max,
UINT32 wRemoveMsg
);
Parameters
LPMSG32 lpmsg
|
Buffer to receive message. |
|---|---|
HWND32 hwnd
|
Restrict to messages for hwnd. |
UINT32 min
|
Minimum message to receive. |
UINT32 max
|
Maximum message to receive. |
UINT32 wRemoveMsg
|
Removal flags. |
Overview
Checks for a message in the thread's queue, filtered as for GetMessage(). Returns immediately whether a message is available or not.
Whether a retrieved message is removed from the queue is set by the _wRemoveMsg_ flags, which should be one of the following values:
PM_NOREMOVE Do not remove the message from the queue.
PM_REMOVE Remove the message from the queue.
In addition, PM_NOYIELD may be combined into _wRemoveMsg_ to request that the system not yield control during PeekMessage(); however applications may not rely on scheduling behavior.
Returns
Nonzero if a message is available and is retrieved, zero otherwise.
Conformance
ECMA-234, Win32.