I have need to run a program as Administrator. Here's what I am doing: A windows service running as Local System, launches an application on some event (USB related) which needs to run as admin, this program has a taskbar icon and other dialogs. The user logged in is also admin. I was able to drop in this code and it launched the program, the program was not able to access the admin parts.
Great code worked perfectly,
I have need to run a program as Administrator. Here's what I am doing: A windows service running as Local System, launches an application on some event (USB related) which needs to run as admin, this program has a taskbar icon and other dialogs. The user logged in is also admin. I was able to drop in this code and it launched the program, the program was not able to access the admin parts.