User32GetMessage Method

Overload List

GetMessage(NativeMessage, IntPtr, UInt32, UInt32) Retrieves a message from the calling thread's message queue.

The function dispatches incoming sent messages until a posted message is available for retrieval.

Unlike GetMessage(NativeMessage, IntPtr, UInt32, UInt32), the PeekMessage(NativeMessage, IntPtr, UInt32, UInt32, PeekMessageFlags) function does not wait for a message to be posted before returning.

GetMessage(NativeMessage, HandleRef, UInt32, UInt32) Retrieves a message from the calling thread's message queue.

The function dispatches incoming sent messages until a posted message is available for retrieval.

Unlike GetMessage(NativeMessage, IntPtr, UInt32, UInt32), the PeekMessage(NativeMessage, IntPtr, UInt32, UInt32, PeekMessageFlags) function does not wait for a message to be posted before returning.

See Also