卸载钩子 UnhookWindowsHookEx
2024-08-30 19:38:47
The UnhookWindowsHookEx function removes a hook procedure installed in a hook chain by the SetWindowsHookEx function.
Syntax
BOOL UnhookWindowsHookEx( HHOOK hhk
);
Parameters
- hhk
- [in] Handle to the hook to be removed. This parameter is a hook handle obtained by a previous call to SetWindowsHookEx.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Remarks
The hook procedure can be in the state of being called by another thread even
after UnhookWindowsHookEx returns. If the hook procedure is not being
called concurrently, the hook procedure is removed immediately before
UnhookWindowsHookEx returns.
Example
For an example, see Monitoring System
Events.
Function Information
Minimum DLL Version user32.dll Header Declared in Winuser.h, include Windows.h Import library User32.lib Minimum operating systems Windows 95, Windows NT 3.1 Unicode Implemented as Unicode version.
最新文章
- MVC 发布
- Icinga快速安装与配置
- Machine Learning - 第5周(Neural Networks: Learning)
- sql中的inner join, left join, right join的区别
- 静态方法中不能new内部类的实体对象
- 学习:WordXML格式初步分析
- Fedora21无法播放MP4[已解决]
- Asp.Net Core 2.0 之旅---在Ubuntu上部署WEB应用程序
- Could not get JDBC Connection--java
- .Net Core新建解决方案,添加项目引用,使用VSCode调试
- bundle adjustment原理(1)
- linux 创建守护进程的相关知识
- 浅谈使用NIO,AIO的感受
- C# 两个时间相减 返回 对应天时分秒
- Scrum 项目准备5.0
- python 执行字符串中的python代码
- ADO.NET对象模型之间的关系
- mifi随身wifi选购
- C# 面试题 (二)
- 【ACM】How many prime numbers