QuerySendMessage

Go to Home Page

Retrieves details of the current sent message being processed

Syntax

BOOL WINAPI QuerySendMessage (
    MSG* pMsg
)

Parameters

pMsg
Pointer to a message structure to fill in

Return Value

Nonzero if the details were returned, zero on failure or if the current message came via Post(Thread)Message

Remarks

This function can't be called by 32-bit processes on 64-bit Windows, regardless of who sent the message.

The pt member of the structure isn't filled in

You can use InSendMessage to check whether this function would return anything.

QuerySendMessage is largely redundant. The important parts of the MSG structure are passed directly to the WndProc (HWND, UINT, WPARAM, LPARAM) and the time data is recoverable with GetMessageTime().

This function is also known as NtUserQuerySendMessage