473,324 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Question regarding ServiceControlManager and messenger service

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
Jan 7 '07 #1
1 938
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.

"Robert Dufour" <bd*****@sgiims.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>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

Jan 7 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ricci Hammond | last post by:
Is there an official microsoft component/sdk/document/anything for accessing MSN messenger functionality in .NET ? I need users to be able to send/receive messages to my service using Messenger....
1
by: NightHog | last post by:
Is there a way to programatically intercept a Net Send command before the Messenger Service popup appears? I need to log the sender and the message text. How does the Messenger Service works?...
1
by: NightHog | last post by:
I created another service application to replace the Messenger service. This application will be listening to \\.\mailslot\messngr for incoming messenges. I do a net send from another client...
0
by: NightHog | last post by:
I created another service application to replace the Messenger service. This application will be listening to \\.\mailslot\messngr for incoming messages. I do a net send from another client...
4
by: z | last post by:
Hello, I am currently learing Visual Basic, and I have a specific task in mind I would like to achieve, but am getting a bit lost. I use MSN Messenger to communicate with friends. You type the...
0
by: Stephajn Craig | last post by:
Has anyone had this experience yet? What I'd like to do is have a Windows Service monitoring and automating Windows Messenger on a server. I've already begun a proof of concept by creating a...
0
by: kpandian | last post by:
Hi Everyone, I have a module which i have been working for the past couplr of days. I am trying to send im from my ap thru Messenger Type Library. (Windows Messenger, .Net 2.0 anf Messenger Type...
2
by: Alex | last post by:
I am fairly new to C# development. I have read a number of articles about developing messenger applications, but they all assume that it is operating internally and that the IP address of the...
3
by: =?Utf-8?B?Qi4gQ2hlcm5pY2s=?= | last post by:
I've written some test code based on a Help example. Assuming I get a ServiceController using the ServiceController.GetServices call, is there any way to use that to get the executable path of...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.