QuerySendMessage

3.1

  BOOL QuerySendMessage(hreserved1, hreserved2, hreserved3, lpMessage)    
  HANDLE hreserved1;    
  HANDLE hreserved2;    
  HANDLE hreserved3;    
  LPMSG lpMessage; /* address of structure for message */

The QuerySendMessage function determines whether a message sent by SendMessage originated from within the current task. If the message is an intertask message, QuerySendMessage puts it into the specified MSG structure.

Parameters

hreserved1

Reserved; must be NULL.

hreserved2

Reserved; must be NULL.

hreserved3

Reserved; must be NULL.

lpMessage

Specifies the MSG structure in which to place an intertask message. The MSG structure has the following form:

typedef struct tagMSG {     /* msg */
    HWND   hwnd;
    UINT   message;
    WPARAM wParam;
    LPARAM lParam;
    DWORD  time;
    POINT  pt;
} MSG;

For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.

Return Value

The return value is zero if the message originated within the current task. Otherwise, it is nonzero.

Comments

If the Windows debugger is entering soft mode, the application being debugged should reply to intertask messages by using the ReplyMessage function.

The NULL parameters are reserved for future use.

See Also

SendMessage, ReplyMessage