Message Queue Functions

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The following table shows the message queue functions, with a description of the purpose of each.

Programming element Description

DispatchMessage

This function dispatches a message to a window procedure.

GetMessage

This function retrieves a message from the calling thread's message queue and places it in the specified structure.

GetMessagePos

This function returns a long value that gives the cursor position in screen coordinates.

GetMessageQueueReadyTimeStamp

This function retrieves the time at which a specified thread was last ready to process a message.

GetMessageSource

This function determines the source of a keyboard message.

InSendMessage

This function determines whether the current window procedure is processing a message that was sent from another thread (in the same process or a different process) by a call to the SendMessage function.

PeekMessage

This function checks a thread message queue for a message and places the message (if any) in the specified structure.

PostMessage

This function places a message in the message queue associated with the thread that created the specified window and then returns without waiting for the thread to process the message.

PostQuitMessage

This function indicates to Windows that a thread has made a request to terminate (quit).

PostThreadMessage

This function places a message in the message queue of the specified thread and then returns without waiting for the thread to process the message.

RegisterWindowMessage

This function defines a new window message that is guaranteed to be unique throughout the system.

SendMessage

This function sends the specified message to a window or windows.

SendMessageTimeout

This function sends a specified message to a window by calling the window procedure for the specified window, with the message as one of the parameters for the window procedure.

SendNotifyMessage

This function sends the specified message to the given window.

TranslateMessage

This function translates virtual-key messages into character messages.

See Also

Reference

Message Queue Reference