网站首页  词典首页

请输入您要查询的函数:

 

术语 sendasyncproc
释义 SendAsyncProc
语法:
VOID SendAsyncProc( HWND hwnd,
UINT uMsg,
ULONG_PTR dwData,
LRESULT lResult
);
SendAsyncProc功能
该SendAsyncProc函数是一个应用程序定义的回调函数与SendMessageCallback功能使用。该系统将消息传递给回调函数传递消息后,到目的地的窗口过程。在SENDASYNCPROC类型定义一个指向这个回调函数。 SendAsyncProc是一个应用程序的占位符定义函数的名称。
参数
hwnd
[in]句柄窗口的窗口过程收到的消息。
如果SendMessageCallback功能与hwnd设置HWND_BROADCAST参数调用,系统调用SendAsyncProc功能为每个顶层窗口一次。
uMsg
[in]指定的消息。
dwData
[in]指定一个应用程序定义的函数从SendMessageCallback发送价值。
lResult
[in]指定消息的处理结果。此值取决于消息。
返回值
此回调函数不返回值。
备注
您安装SendAsyncProc应用程序定义的通过一项SENDASYNCPROC指针SendMessageCallback函数回调函数。
回调函数只有当线程调用的所谓SendMessageCallback调用GetMessage,PeekMessage,或WaitMessage。
功能信息
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryNone
最低操作系统Windows 95,Windows NT 3.1
参见
消息和消息队列概述,GetMessage,PeekMessage,SendMessageCallback,WaitMessage
==英文原文==SendAsyncProc Function
The SendAsyncProc function is 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
VOID SendAsyncProc( HWND hwnd,
UINT uMsg,
ULONG_PTR dwData,
LRESULT lResult
);
Parameters
hwnd
[in] 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.
uMsg
[in] Specifies the message.
dwData
[in] Specifies an application-defined value sent from the SendMessageCallback function.
lResult
[in] Specifies the result of the message processing. This value depends on the message.
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 .
Function Information
HeaderDeclared in Winuser.h, include Windows.h
Import libraryNone
Minimum operating systemsWindows 95, Windows NT 3.1
See Also
Messages and Message Queues Overview , GetMessage , PeekMessage , SendMessageCallback , WaitMessage
==原始网址==http://msdn.microsoft.com/en-us/library/ms644949(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2025/1/9 4:05:01