在打开目录或文件(比如hook.txt)时调用哪个HOOK? [英] which HOOK is called when a directory or a file (say hook.txt ) is opened ?

查看:95
本文介绍了在打开目录或文件(比如hook.txt)时调用哪个HOOK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人请告诉我答案吗?

推荐答案

无。没有这样的钩子。



在应用程序中打开文件不是一些神秘的事情。它一直在系统范围内发生,而不仅仅是当您双击某些东西时。
None. No such "hook" exists.

Opening a file in an application is not some mystical thing. It happens all the time, system wide, not just when you double-click something.


在您的问题中,您谈到打开文件时挂钩,但之后您会谈到检测窗口。这些是不同的东西..

好​​吧,你可能无法检测到所有事件,如果它们是瞬态的,但可能是一种定期走过打开文件句柄的方法,例如:列出使用的文件 [ ^ ]
In your question you speak about "hooking" on opening files, but afterwards you speak about detecting windows. These are different things..
Well, you might not be able to detect all events, if they are transient, but might be one approach periodically walking trough open file handles, see for example: Listing Used Files[^]


这篇关于在打开目录或文件(比如hook.txt)时调用哪个HOOK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆