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.

最新文章

  1. MVC 发布
  2. Icinga快速安装与配置
  3. Machine Learning - 第5周(Neural Networks: Learning)
  4. sql中的inner join, left join, right join的区别
  5. 静态方法中不能new内部类的实体对象
  6. 学习:WordXML格式初步分析
  7. Fedora21无法播放MP4[已解决]
  8. Asp.Net Core 2.0 之旅---在Ubuntu上部署WEB应用程序
  9. Could not get JDBC Connection--java
  10. .Net Core新建解决方案,添加项目引用,使用VSCode调试
  11. bundle adjustment原理(1)
  12. linux 创建守护进程的相关知识
  13. 浅谈使用NIO,AIO的感受
  14. C# 两个时间相减 返回 对应天时分秒
  15. Scrum 项目准备5.0
  16. python 执行字符串中的python代码
  17. ADO.NET对象模型之间的关系
  18. mifi随身wifi选购
  19. C# 面试题 (二)
  20. 【ACM】How many prime numbers

热门文章

  1. YTU 2979: MathBook类--多态
  2. 【SCOI 2005】 最大子矩阵
  3. 377D
  4. ChartCtrl源码剖析之——CChartLegend类
  5. 关于kafka-clients JAVA API的基本使用
  6. java笔记之IO3读操作
  7. poj 1149 PIGS【最大流】
  8. [Usaco2006 Mar]Mooo 奶牛的歌声
  9. how-to-fix-fs-re-evaluating-native-module-sources-is-not-supported-graceful
  10. xml小练习