473,811 Members | 2,851 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Question regarding ServiceControlM anager 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 964
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******** ********@TK2MSF TNGP03.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
1563
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. I am currently using dotMSN but am a little concerned that if I go live with it and MS change the messenger protocols I will be left with a broken app (and probably some annoyed customers).
1
1831
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? Has anyone tried to write a program replacing Message Service? To write an application listening to port 139 will not work because it is in used by NetBios. Is there a workaround?
1
2861
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 machine, i get this error "An error ocurred while sending a message to The message alias could not be found on the network" Besides listening to \\.\mailslot\messngr , what else does my applcation need to do for it to emulate Messenger service?
0
1112
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 machine, i get this error "An error ocurred while sending a message to The message alias could not be found on the network" Besides listening to \\.\mailslot\messngr , what else does my applcation need to do for it to emulate Messenger service?
4
1588
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 dialogue, hit enter, and it all appears in the dialogue window. Fine. But there are times when we need to be aware of the time of day, so what I want to do is code a VB program which will create the required string, and using DDE (or some other...
0
1328
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 little Windows app that connects to or creates an instance of Windows Messenger. It even makes it log in using cached credentials. From there, I can access the Contact List, and even listen for events that are raised by the Messenger client. So,...
0
1241
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 Library 1.0) I have two services, .Net Messaging service for hotmail and SIP communication service for company im) and i have the following code
2
1775
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 client is known. I would like to develop a messenger-esque service that will communicate live database information to a central, remote server. The process would be something like this: 1) A user at the remote site requests information from the...
3
2523
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 the Windows Service?
0
9722
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10644
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10124
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9200
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6882
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.