How to suppress a warning in protected IE mode

I have a BHO that captures web pages as images, and I'm starting another process to create images created this way. The problem that I encounter on UAC-enabled systems is that every time IE is running, I get a warning for the pngcrushing process, which I spawn from BHO. I read here - http://msdn.microsoft.com/en-us/library/bb250462(VS.85).aspx#wpm_elebp , which can raise the process by making certain reg entries.

When I made the same reg entries manually to check if I had passed these warnings, I found out that it was not working. Can someone tell me how to safely start a process from BHO without any UAC warnings? A.

Capil

+3
source share
1 answer

In response to the @blueraja comment above, here is the code I use tp spawns 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); 
0
source

Source: https://habr.com/ru/post/1751378/


All Articles