1 out of 1 rated this helpful - Rate this topic

InSendMessage function

Applies to: desktop apps only

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.

To obtain additional information about how the message was sent, use the InSendMessageEx function.

Syntax

BOOL WINAPI InSendMessage(void);

Parameters

This function has no parameters.

Return value

Type:

Type: BOOL

If the window procedure is processing a message sent to it from another thread using the SendMessage function, the return value is nonzero.

If the window procedure is not processing a message sent to it from another thread using the SendMessage function, the return value is zero.

Examples

For an example, see Sending a Message.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
InSendMessageEx
SendMessage
Conceptual
Messages and Message Queues

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
C# syntax
[DllImport("user32.dll", CharSet=CharSet.Auto)]
internal static extern bool InSendMessage();
vb.net syntax
<DllImport("user32.dll", CharSet:=CharSet.Auto)> _
Public Shared Function InSendMessage() As Boolean
End Function