开发者

subscribe to IE process

开发者 https://www.devze.com 2023-01-08 02:21 出处:网络
Is it possible to subscribe to IE process. Anytime an Internet Explorer window开发者_高级运维 is opened i would like to get an event triggered in windows form/console app.Normally you could use a wind

Is it possible to subscribe to IE process. Anytime an Internet Explorer window开发者_高级运维 is opened i would like to get an event triggered in windows form/console app.


Normally you could use a windows hook to do something like this but the only hooks supported in the .net framework are mouse and keyboard events. Refer to this article for what I mean:

http://support.microsoft.com/kb/318804

So what you could do is just periodically poll the running processes on the machine by using this call:

System.Diagnostics.Process.GetProcesses();

That should get you started.

0

精彩评论

暂无评论...
验证码 换一张
取 消