网站首页  词典首页

请输入您要查询的函数:

 

术语 unhookwindowshookex
释义 UnhookWindowsHookEx
语法:
BOOL UnhookWindowsHookEx( HHOOK hhk
);
UnhookWindowsHookEx函数
该UnhookWindowsHookEx函数删除了一个钩子程序,安装一个钩子链的SetWindowsHookEx函数。
参数
人发角蛋白
[in]句柄钩被删除。此参数是一个钩子处理以前调用SetWindowsHookEx函数获得。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。为了获得更多错误信息,调用GetLastError。
备注
挂钩过程可以在被另一个线程调用,即使UnhookWindowsHookEx返回状态。如果挂钩过程不被称为同时,钩子程序立即删除之前UnhookWindowsHookEx回报。
例如
有关示例,请参阅监视系统事件。
功能信息
最低DLL版本 user32.dll
在Winuser.h中HeaderDeclared,头文件:winuser.h
import libraryUser32.lib
最低操作系统Windows 95,Windows NT 3.1
UnicodeImplemented为Unicode版本。
参见
钩概述,调用SetWindowsHookEx
==英文原文==UnhookWindowsHookEx Function
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 Versionuser32.dll
HeaderDeclared in Winuser.h, include Windows.h
Import libraryUser32.lib
Minimum operating systemsWindows 95, Windows NT 3.1
UnicodeImplemented as Unicode version.
See Also
Hooks Overview , SetWindowsHookEx
==原始网址==http://msdn.microsoft.com/en-us/library/ms644993(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:24:20