Question regarding ServiceControlManager and messenger service

  • Thread starter Thread starter Robert Dufour
  • Start date Start date
R

Robert Dufour

I have an app that uses messenger service. When the app starts up it checks
to see if messenger is running on the computer and starts it if it is not.
The code works fine on my dev machine on which I have administrator
permissions.
I am wondering if someone starting the app with more restricted permissions
would also be able to have the code start the service or would the security
context prevent the start command on the messenger service from executing?

I am using this prog on either W2K or Win XP Pro SP2 with .net framework 1.1
and also in another prog with .Net Framework 2.0

If the security system prevents lower access users from executing the start
command, how can I make the code execute corrcetly anyways?

Any insight would be greatly appreciated,
Bob
 
Robert,

I would say that the you might be able to query under limited user but not
change any service's state.

The only thing I could think of is using "Local System" aka "System" account
impersination to achieve this.

Michael.
 
Back
Top