问题描述
谁能告诉我如何在 Delphi 中使用IShellExecuteHook.Execute"?
Can someone show me how to use "IShellExecuteHook.Execute" in Delphi please?
信息:IShellExecuteHook::Execute 方法
说明:任何时候调用 ShellExecute 或 ShellExecuteEx 函数时都会调用此方法叫.当在资源管理器中双击文件或运行对话框时会发生这种情况使用盒子.
Description:This method is called any time the ShellExecute or ShellExecuteEx functions arecalled. This happens when a file is double-clicked in Explorer or when the Run dialogbox is used.
谢谢.
推荐答案
以下 EDN 链接看起来可以满足您的需求:如何挂钩 ShellExecute 调用 (IShellExecuteHook)
The following EDN link looks like it will give you what you need: How to hook ShellExecute calls (IShellExecuteHook)
请注意,它不能在 64 位 Windows 中运行,因为这需要 64 位 shell 扩展,并且因为 Delphi 只生成 32 位图像,您需要使用不同的语言.我还注意到 IShellExecuteHook 从 Vista 开始被弃用.
Be aware that it won't work in 64 bit Windows because that requires 64 bit shell extensions and because Delphi only produces 32 bit images you would need to use a different language. I also note that IShellExecuteHook is deprecated as of Vista.
这篇关于IShellExecuteHook.Execute的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!