Create Process from Service, with Currently Logged in User

S

SStory

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
 
S

Steve Long

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
 
S

SStory

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top