IShellExecuteHook.Execute

2019-06-10 23:30发布

Can someone show me how to use "IShellExecuteHook.Execute" in Delphi please?

info: IShellExecuteHook::Execute Method

Description: This method is called any time the ShellExecute or ShellExecuteEx functions are called. This happens when a file is double-clicked in Explorer or when the Run dialog box is used.

Thanks.

1条回答
够拽才男人
2楼-- · 2019-06-11 00:01

The following EDN link looks like it will give you what you need: How to hook ShellExecute calls (IShellExecuteHook)

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.

查看更多
登录 后发表回答