将菜单项添加到另一个应用程序

时间:2022-02-15 21:18:21

gAlwaysIdle is a windows application which will add a menu item to Gtalk context menu.

gAlwaysIdle是一个Windows应用程序,它将向Gtalk上下文菜单添加一个菜单项。

alt text http://www.tothepc.com/pic/gtalkidle.jpg

alt text http://www.tothepc.com/pic/gtalkidle.jpg

How can I do this to an application using vb.net or c#.net?

如何使用vb.net或c#.net对应用程序执行此操作?

1 个解决方案

#1


I don't think this is possible using .NET. gAlwaysIdle's website is down at the moment, but it most likely uses code/DLL injection to modify Google Talk's code at runtime and insert a menu item. This is only possible with native code (compiled) languages, which .NET languages aren't.

我认为这不可能使用.NET。目前gAlwaysIdle的网站已关闭,但它很可能使用代码/ DLL注入在运行时修改Google Talk的代码并插入一个菜单项。这只适用于本机代码(已编译)语言,而.NET语言则不然。

Edit: I found a download mirror and took a look at the application. It uses the SetWindowsHook method of DLL injection, which confirms my theory.

编辑:我找到了一个下载镜像并查看了该应用程序。它使用DLL注入的SetWindowsHook方法,这证实了我的理论。

#1


I don't think this is possible using .NET. gAlwaysIdle's website is down at the moment, but it most likely uses code/DLL injection to modify Google Talk's code at runtime and insert a menu item. This is only possible with native code (compiled) languages, which .NET languages aren't.

我认为这不可能使用.NET。目前gAlwaysIdle的网站已关闭,但它很可能使用代码/ DLL注入在运行时修改Google Talk的代码并插入一个菜单项。这只适用于本机代码(已编译)语言,而.NET语言则不然。

Edit: I found a download mirror and took a look at the application. It uses the SetWindowsHook method of DLL injection, which confirms my theory.

编辑:我找到了一个下载镜像并查看了该应用程序。它使用DLL注入的SetWindowsHook方法,这证实了我的理论。