SENDASYNCPROC callback function

An application-defined callback function used with the SendMessageCallback function. The system passes the message to the callback function after passing the message to the destination window procedure. The SENDASYNCPROC type defines a pointer to this callback function. SendAsyncProc is a placeholder for the application-defined function name.

Syntax

SENDASYNCPROC Sendasyncproc;

void Sendasyncproc(
  HWND Arg1,
  UINT Arg2,
  ULONG_PTR Arg3,
  LRESULT Arg4
)
{...}

Parameters

Arg1

Arg2

Arg3

Arg4

Return Value

This callback function does not return a value.

Remarks

You install a SendAsyncProc application-defined callback function by passing a SENDASYNCPROC pointer to the SendMessageCallback function.

The callback function is only called when the thread that called SendMessageCallback calls GetMessage, PeekMessage, or WaitMessage.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)

See Also

Conceptual

GetMessage

Messages and Message Queues

PeekMessage

Reference

SendMessageCallback

WaitMessage