开发者

subscribe to IE process

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜