Saturday, January 29, 2011

Issue to get process id of the IExplore on Windows vista or later

If we want to get id  of the process and get detail about that process or kill that process 

Then it’s not as strait as getprocessbyName inbuilt method. 


This issue happens to get detail about process iexplore. With windows version later than vista and IE version higher than 6 this issue occurs. 

This issue is due to the way the new IE manage the session so they are managing the process created in some different way. So if we get directly id by “getProcessByName” or “getProcessByID” will not work. 

For that I have found on net one good solution to get Id of IE process on vista or later by below link..


http://www.jeff.wilcox.name/2008/09/using-ielaunchurl-in-c-to-launch-a-protected-mode-internet-explorer-7-window/

Thanks to Jeff Wilcox here it’s given nice explanation and implementation of the whole procedure to get the Id of the process for vista or later. 

So after you get the id of the process with the above method  is not only enough then after have to get parent process of the process get by above method. 


So this parent process is the actual process started by IE. So we can use id of that to do whatsoever  kill process or retrieve some information. 

Hope this will be helpful to resolve really weird issue with the IE process on vista or later.

Thanks
Tushar 

No comments:

Post a Comment