Skip to content

Latest commit

 

History

History
115 lines (74 loc) · 3.85 KB

nc-winuser-sendasyncproc.md

File metadata and controls

115 lines (74 loc) · 3.85 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NC:winuser.SENDASYNCPROC
SENDASYNCPROC (winuser.h)
An application-defined callback function used with the SendMessageCallback function.
SendAsyncProc
SendAsyncProc callback
SendAsyncProc callback function [Windows and Messages]
_win32_SendAsyncProc
_win32_sendasyncproc_cpp
winmsg.sendasyncproc
winui._win32_sendasyncproc
winuser/SendAsyncProc
winmsg\sendasyncproc.htm
winmsg
VS|winui|~\winui\windowsuserinterface\windowing\messagesandmessagequeues\messagesandmessagequeuesreference\messagesandmessagequeuesfunctions\sendasyncproc.htm
12/05/2018
SendAsyncProc, SendAsyncProc callback, SendAsyncProc callback function [Windows and Messages], _win32_SendAsyncProc, _win32_sendasyncproc_cpp, winmsg.sendasyncproc, winui._win32_sendasyncproc, winuser/SendAsyncProc
winuser.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Windows
19H1
SENDASYNCPROC
winuser/SENDASYNCPROC
c++
APIRef
kbSyntax
UserDefined
Winuser.h
SendAsyncProc

SENDASYNCPROC callback function

-description

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.

-parameters

-param unnamedParam1

Type: HWND

A handle to the window whose window procedure received the message.

If the SendMessageCallback function was called with its hwnd parameter set to HWND_BROADCAST, the system calls the SendAsyncProc function once for each top-level window.

-param unnamedParam2

Type: UINT

The message.

-param unnamedParam3

Type: ULONG_PTR

An application-defined value sent from the SendMessageCallback function.

-param unnamedParam4

Type: LRESULT

The result of the message processing. This value depends on the message.

-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.

-see-also

Conceptual

GetMessage

Messages and Message Queues

PeekMessage

Reference

SendMessageCallback

WaitMessage