GetSendMessageReceiver

Go to Home Page

Queries the window that the thread is waiting on to finish processing a sent message

Syntax

HWND WINAPI GetSendMessageReceiver (
    DWORD threadId
)

Parameters

threadId
The identifier of a thread waiting for a SendMessage return

Return Value

The window that the message was sent to, or NULL. Check GetLastError() to determine whether the function failed (nonzero) or if threadId just wasn't waiting (ERROR_SUCCESS)

Remarks

The thread identified by threadId must be on the same desktop as the calling thread. The query is also subject to UIPI restrictions, the process containing threadId must be at the same or lower intergrity level than the caller and of the same session.

If the target window is on a different desktop than the calling thread, NULL is returned with an error of ERROR_ACCESS_DENIED.