ServiceControllerPermission

Inferno122

Newcomer
Joined
Jul 31, 2003
Messages
6
Location
Philippines
I have created a windows service and a winform app. My idea was to allow the winform app to controll the windows service being run as the local system. My problem is this, I have been reading about the ServiceControllerPermission class and I can't seem to comprehend how can I use it :(

Can anybody please show me a code or snippet that demonstrates how a standard app run by any authenticated user can control a service run by the local system... anybody, please?
 
Hi did you ever find a way to resolve this? I have just built a C# Win From app to control NT Services runnign on the local machine or a server on the network. When i run this from an account with admin permissions it's fine, but running on a standard user machine I get a Access Denied exception and need to know how to use the ServiceControllerPermission class.
 
Back
Top