网站首页  词典首页

请输入您要查询的函数:

 

术语 callwndretproc
释义 CallWndRetProc
语法:
LRESULT CALLBACK CallWndRetProc( int nCode,
WPARAM wParam,
LPARAM lParam
);
CallWndRetProc功能
该CallWndRetProc挂钩过程是一个应用程序定义或库定义的回调函数中调用SetWindowsHookEx函数使用。系统调用SendMessage函数后调用此函数。挂钩过程可以检查邮件,并不能对其进行修改。
在HOOKPROC类型定义一个指向这个回调函数。 CallWndRetProc是一个应用程序的占位符定义或库定义的函数的名称。
参数
nCode
[in]指定是否挂钩过程必须处理的消息。如果nCode是HC_ACTION,挂钩过程必须处理的消息。如果nCode小于零,钩子程序必须通过信息,CallNextHookEx函数没有进一步的处理,并应归还CallNextHookEx返回的值。
wParam
[in]消息是否是由当前进程发送指定。如果消息是由当前进程发送,但不为零,否则为NULL。
lparam的
[in]指向1 CWPRETSTRUCT结构,其中包含有关信件的具体内容。
返回值
如果nCode小于零,钩子程序必须归还CallNextHookEx返回的值。
如果nCode大于或等于零,强烈建议您调用CallNextHookEx并返回返回值,否则,已经安装WH_CALLWNDPROCRET其他应用程序挂钩钩将不会收到通知,并可能表现为一个结果不正确。如果挂钩过程不会调用CallNextHookEx,返回值应为零。
备注
安装的应用程序通过指定WH_CALLWNDPROCRET钩子类型和在调用指针挂钩过程的SetWindowsHookEx函数钩子程序。
功能信息
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryNone
最低操作系统Windows 95,Windows NT 4.0
参见
钩概述,CallNextHookEx,CallWndProc,CWPRETSTRUCT,SendMessage消息,调用SetWindowsHookEx
==英文原文==CallWndRetProc Function
The CallWndRetProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function after the SendMessage function is called. The hook procedure can examine the message; it cannot modify it.
The HOOKPROC type defines a pointer to this callback function. CallWndRetProc is a placeholder for the application-defined or library-defined function name.
Syntax
LRESULT CALLBACK CallWndRetProc( int nCode,
WPARAM wParam,
LPARAM lParam
);
Parameters
nCode
[in] Specifies whether the hook procedure must process the message. If nCode is HC_ACTION, the hook procedure must process the message. If nCode is less than zero, the hook procedure must pass the message to the CallNextHookEx function without further processing and should return the value returned by CallNextHookEx.
wParam
[in] Specifies whether the message is sent by the current process. If the message is sent by the current process, it is nonzero; otherwise, it is NULL.
lParam
[in] Pointer to a CWPRETSTRUCT structure that contains details about the message.
Return Value
If nCode is less than zero, the hook procedure must return the value returned by CallNextHookEx.
If nCode is greater than or equal to zero, it is highly recommended that you call CallNextHookEx and return the value it returns; otherwise, other applications that have installed WH_CALLWNDPROCRET hooks will not receive hook notifications and may behave incorrectly as a result. If the hook procedure does not call CallNextHookEx, the return value should be zero.
Remarks
An application installs the hook procedure by specifying the WH_CALLWNDPROCRET hook type and a pointer to the hook procedure in a call to the SetWindowsHookEx function.
Function Information
HeaderDeclared in Winuser.h, include Windows.h
Import libraryNone
Minimum operating systemsWindows 95, Windows NT 4.0
See Also
Hooks Overview , CallNextHookEx , CallWndProc , CWPRETSTRUCT , SendMessage , SetWindowsHookEx
==原始网址==http://msdn.microsoft.com/en-us/library/ms644976(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 更新时间:2024/10/6 11:31:34