473,508 Members | 2,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create Process from Service, with Currently Logged in User

I have a service which has no U/I, that I use to ensure a certain tray
application is running.

I would like for the service which runs under "Local System", to create the
process as a normal app for the user currently logged in....

Is there a way to do it.... or is there a way for a winforms app launched by
a user to communicate with a service??

How would it get a hold on the service that was running before it was and
interact with it?

Thanks,

Shane
Nov 23 '05 #1
2 2936
Yes you can communicate with a service using .NET Remoting. And you can get
the currently logged in user from your app by using this:
WindowsIdentity.GetCurrent.Name.ToString()

I'm not sure about getting the currently logged in user from a service.

Steve

"SStory" <no****@nospam.com> wrote in message
news:Oq**************@TK2MSFTNGP11.phx.gbl...
I have a service which has no U/I, that I use to ensure a certain tray
application is running.

I would like for the service which runs under "Local System", to create the process as a normal app for the user currently logged in....

Is there a way to do it.... or is there a way for a winforms app launched by a user to communicate with a service??

How would it get a hold on the service that was running before it was and
interact with it?

Thanks,

Shane

Nov 23 '05 #2
Ok. I am fairly ignorant of .NET Remoting. Do you have any samples or links
to samples of doing this?

I will also search the net for this.

thanks again,

Shane
"Steve Long" <St**********@NoSpam.com> wrote in message
news:Oo**************@TK2MSFTNGP12.phx.gbl...
Yes you can communicate with a service using .NET Remoting. And you can
get
the currently logged in user from your app by using this:
WindowsIdentity.GetCurrent.Name.ToString()

I'm not sure about getting the currently logged in user from a service.

Steve

"SStory" <no****@nospam.com> wrote in message
news:Oq**************@TK2MSFTNGP11.phx.gbl...
I have a service which has no U/I, that I use to ensure a certain tray
application is running.

I would like for the service which runs under "Local System", to create

the
process as a normal app for the user currently logged in....

Is there a way to do it.... or is there a way for a winforms app launched

by
a user to communicate with a service??

How would it get a hold on the service that was running before it was and
interact with it?

Thanks,

Shane


Nov 23 '05 #3

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

Similar topics

3
2191
by: Brad Jones | last post by:
Hello, I'm hoping someone can give me some help or guidance here. I'm not sure if this is even the best group to post to for this. Our OEM equipment's software architecture relies heavily on a...
7
10283
by: Lalit | last post by:
Hi Friends, I have developed a Windows service. Now i need icon for this service in systray and context menu fo this icon. Can i do this? With regards, Lalit
7
8822
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
4
2371
by: Mrinal Kamboj | last post by:
Hi , Doubt may be bit trivial , but i wanted to know , what are the exact benefits derived while we run a background process as an NT service in windows , we can as well achieve the...
6
4807
by: Dde | last post by:
Hi, I am having a problem starting a process from within a web service. My code works in a console program but not from the web service. Looks like the process starts, I can see it in...
5
8272
by: Jason Richmeier | last post by:
The application I am currently working on contains a custom windows service. On my machine, when I logon with a domain user (non-admin) account, the user is unable to control (start and stop) the...
33
11809
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
0
974
by: sigsik | last post by:
Hi, I'd like to run an executable process without the need to be logged on to the computer. that is why i want to run it as a window service. The executable opens a form (ui) that does not...
0
2077
by: thephatp | last post by:
Is there any possible way to get the currently logged in (active) user from within a service? I need the service to start at runtime. I need to capture log on / log off / switch user events. I...
0
7225
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,...
0
7124
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7385
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
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...
1
5053
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...
0
3195
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...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
418
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...

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.