Tutorial :How to supress the warning in IE's protected mode


I have a BHO which captures webpages as images and I run another process to pngcrush the images thus created. The problem that I face in UAC enabled systems is that everytime IE runs, I get a warning for the pngcrushing process that I spawn from the BHO. I read here - http://msdn.microsoft.com/en-us/library/bb250462(VS.85).aspx#wpm_elebp that can elevate the process by making certain reg entries.

When I did the same reg entries manually to see if I go past these warnings, figured out that it was not working. Can someone tell me how to run the process silently from the BHO without any UAC warnings?



In response to @blueraja's comment above, here is the code I use tp spawn the process:

ProcessStartInfo info = new ProcessStartInfo();  info.FileName = binPath + "\\pngnqi.exe";  info.WindowStyle = ProcessWindowStyle.Hidden;  info.WindowStyle = ProcessWindowStyle.Hidden;  info.Arguments = " -e .jpg " + " \"" + filePath + "thumb_" + count + "\" " + " \"" + filePath + "temp\\" + count + "\" ";  Process pngnqi_process = Process.Start(info);   

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »