网站首页  词典首页

请输入您要查询的函数:

 

术语 debugproc
释义 DebugProc
语法:
LRESULT CALLBACK DebugProc( int nCode,
WPARAM wParam,
LPARAM lParam
);
DebugProc功能
该DebugProc挂钩过程是一个应用程序定义或库定义的回调函数中调用SetWindowsHookEx函数使用。系统调用在调用钩子钩与任何类型的相关程序,此功能。该系统通过对钩被称为信息的DebugProc挂钩过程,检查其中的信息并决定是否允许被称为钩。
在HOOKPROC类型定义一个指向这个回调函数。 DebugProc是一个应用程序的占位符定义或库定义的函数的名称。
参数
nCode
[in]指定是否挂钩过程必须处理的消息。如果nCode是HC_ACTION,挂钩过程必须处理的消息。如果nCode小于零,钩子程序必须通过信息,CallNextHookEx函数没有进一步的处理,并应归还CallNextHookEx返回的值。
wParam
[in]指定要被称为吊钩式。此参数可以是下列值之一。
WH_CALLWNDPROC
安装一个钩子程序,监控邮件发送到一个窗口过程。 For more information, see the description of the CallWndProc hook procedure.
WH_CALLWNDPROCRET
安装一个钩子程序,监控消息刚刚被一个窗口程序处理。有关更多信息,见CallWndRetProc挂钩过程的描述。
WH_CBT
安装一个钩子程序,接收通知有用的基于计算机的培训(CBT)的申请。有关更多信息,见CBTProc挂钩过程的描述。
WH_DEBUG
安装一个钩子程序调试其他钩子程序有用。有关更多信息,见DebugProc挂钩过程的描述。
WH_GETMESSAGE
安装一个钩子程序,监测信息发布到消息队列。有关更多信息,见GetMsgProc挂钩过程的描述。
WH_JOURNALPLAYBACK
安装一个钩子程序,职位信息以前由WH_JOURNALRECORD挂钩过程记录下来。有关更多信息,见JournalPlaybackProc挂钩过程的描述。
WH_JOURNALRECORD
安装一个钩子程序,记录输入的信息发送到系统的消息队列。此挂钩可用于录制宏。有关更多信息,见JournalRecordProc挂钩过程的描述。
WH_KEYBOARD
安装一个钩子程序,监控击键信息。有关更多信息,见KeyboardProc挂钩过程的描述。
WH_MOUSE
安装一个钩子程序,监视鼠标消息。有关更多信息,见MouseProc挂钩过程的描述。
WH_MSGFILTER
安装一个钩子程序,监控信息,作为一个输入事件在对话框中产生的结果,消息框,菜单或滚动条。挂钩过程监控只安装该程序的适用挂钩这些消息。有关更多信息,见MessageProc挂钩过程的描述。
WH_SHELL
安装一个钩子程序,接收通知有用的壳牌公司的申请。有关更多信息,见ShellProc挂钩过程的描述和WH_SHELL钩部分。
WH_SYSMSGFILTER
安装一个钩子程序,监控信息,作为一个输入事件在对话框中产生的结果,消息框,菜单或滚动条。挂钩过程监视系统中的所有应用这些信息。有关更多信息,见SysMsgProc挂钩过程的描述。
lparam的
[in]指向1 DEBUGHOOKINFO结构,包含要传递给目标挂钩过程参数。
返回值
为了防止调用挂钩制度,挂钩过程必须返回一个非零值。否则,钩子程序必须调用CallNextHookEx。
备注
安装的应用程序通过指定WH_DEBUG挂钩类型和在调用指针挂钩过程的SetWindowsHookEx函数此挂钩过程。
功能信息
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryNone
最低经营systemsWindows新台币3.1
参见
Hooks Overview , CallNextHookEx , CallWndProc , CallWndRetProc , CBTProc , DEBUGHOOKINFO , GetMsgProc , JournalPlaybackProc , JournalRecordProc , KeyboardProc , MessageProc , MouseProc , SetWindowsHookEx , ShellProc , SysMsgProc
==英文原文==DebugProc Function
The DebugProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function before calling the hook procedures associated with any type of hook. The system passes information about the hook to be called to the DebugProc hook procedure, which examines the information and determines whether to allow the hook to be called.
The HOOKPROC type defines a pointer to this callback function. DebugProc is a placeholder for the application-defined or library-defined function name.
Syntax
LRESULT CALLBACK DebugProc( 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 the type of hook about to be called. This parameter can be one of the following values.
WH_CALLWNDPROC
Installs a hook procedure that monitors messages sent to a window procedure. For more information, see the description of the CallWndProc hook procedure.
WH_CALLWNDPROCRET
Installs a hook procedure that monitors messages that have just been processed by a window procedure. For more information, see the description of the CallWndRetProc hook procedure.
WH_CBT
Installs a hook procedure that receives notifications useful to a computer-based training (CBT) application. For more information, see the description of the CBTProc hook procedure.
WH_DEBUG
Installs a hook procedure useful for debugging other hook procedures. For more information, see the description of the DebugProc hook procedure.
WH_GETMESSAGE
Installs a hook procedure that monitors messages posted to a message queue. For more information, see the description of the GetMsgProc hook procedure.
WH_JOURNALPLAYBACK
Installs a hook procedure that posts messages previously recorded by a WH_JOURNALRECORD hook procedure. For more information, see the description of the JournalPlaybackProc hook procedure.
WH_JOURNALRECORD
Installs a hook procedure that records input messages posted to the system message queue. This hook is useful for recording macros. For more information, see the description of the JournalRecordProc hook procedure.
WH_KEYBOARD
Installs a hook procedure that monitors keystroke messages. For more information, see the description of the KeyboardProc hook procedure.
WH_MOUSE
Installs a hook procedure that monitors mouse messages. For more information, see the description of the MouseProc hook procedure.
WH_MSGFILTER
Installs a hook procedure that monitors messages generated as a result of an input event in a dialog box, message box, menu, or scroll bar. The hook procedure monitors these messages only for the application that installed the hook procedure. For more information, see the description of the MessageProc hook procedure.
WH_SHELL
Installs a hook procedure that receives notifications useful to a Shell application. For more information, see the description of the ShellProc hook procedure and the WH_SHELL hook section.
WH_SYSMSGFILTER
Installs a hook procedure that monitors messages generated as a result of an input event in a dialog box, message box, menu, or scroll bar. The hook procedure monitors these messages for all applications in the system. For more information, see the description of the SysMsgProc hook procedure.
lParam
[in] Pointer to a DEBUGHOOKINFO structure that contains the parameters to be passed to the destination hook procedure.
Return Value
To prevent the system from calling the hook, the hook procedure must return a nonzero value. Otherwise, the hook procedure must call CallNextHookEx.
Remarks
An application installs this hook procedure by specifying the WH_DEBUG hook type and the 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 NT 3.1
See Also
Hooks Overview , CallNextHookEx , CallWndProc , CallWndRetProc , CBTProc , DEBUGHOOKINFO , GetMsgProc , JournalPlaybackProc , JournalRecordProc , KeyboardProc , MessageProc , MouseProc , SetWindowsHookEx , ShellProc , SysMsgProc
==原始网址==http://msdn.microsoft.com/en-us/library/ms644978(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 13:19:15