473,382 Members | 1,380 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,382 software developers and data experts.

windows service to lunch windows application

Hi,

I have a windows service developed using c# and it needs to lunch another
windows application. I have been trying to use Process class to do it but the
problem is becase windows service running at background and using system
account, so the applcation it lunchs is also running at the background. is
there a way to lunch the windows application as current logged in user?

Thanks

Jul 21 '05 #1
3 2614
Try :
http://support.microsoft.com/default.aspx?kbid=306158

Patrice

--

"Michael" <Mi*****@discussions.microsoft.com> a écrit dans le message de
news:92**********************************@microsof t.com...
Hi,

I have a windows service developed using c# and it needs to lunch another
windows application. I have been trying to use Process class to do it but the problem is becase windows service running at background and using system
account, so the applcation it lunchs is also running at the background. is
there a way to lunch the windows application as current logged in user?

Thanks

Jul 21 '05 #2
No offence - but I read your post and muttered to myself "Man..there's
another term I have to look up.What does lunching a service mean". :-)

--
Sriram Krishnan

http://www.dotnetjunkies.com/weblog/sriram
"Michael" <Mi*****@discussions.microsoft.com> wrote in message
news:92**********************************@microsof t.com...
Hi,

I have a windows service developed using c# and it needs to lunch another
windows application. I have been trying to use Process class to do it but
the
problem is becase windows service running at background and using system
account, so the applcation it lunchs is also running at the background. is
there a way to lunch the windows application as current logged in user?

Thanks

Jul 21 '05 #3
Elp
Michael wrote:
I have a windows service developed using c# and it needs to lunch
another windows application. I have been trying to use Process class
to do it but the problem is becase windows service running at
background and using system account, so the applcation it lunchs is
also running at the background. is there a way to lunch the windows
application as current logged in user?


Not really. A Windows Service has by default no access to the currently
logged in user's desktop. This is because it runs regardless of the logged
in user and even if no user is logged in.

However, if you open the Services control panel and go to the properties
page of your service, you will be able to allow it to interact with the
user's desktop. This should allow you to start a Windows application with
the Process class. Note that the application will not run under the logged
in user's account but under your windows service's account (by default Local
System). This poses big security issues and is not recommended. If you do
that you will also certainly run into problems if you try to start a Windows
application while nobody is logged in Windows.

In short: you'd better find another way to do what you want to do than
trying to start a Windows application from a Windows service. What about
placing a shortcut to the needed Windows application in the Startup folder
so that it would be launched automatically each time a user logs in?
Jul 21 '05 #4

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

Similar topics

9
by: SP | last post by:
Hi All, I wrote a windows service which is supposed to stop after specified amount of time. I am calling OnStop() after specified time. OnStop() methods executed but I dont see the service...
5
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the...
4
by: Blaxer | last post by:
I have read approximately 30 articles now on various methods to make your vb.net application automatically update itself and I can't see how they apply to a vb.net windows services projects. The...
3
by: Michael | last post by:
Hi, I have a windows service developed using c# and it needs to lunch another windows application. I have been trying to use Process class to do it but the problem is becase windows service...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
3
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
Now I have a web application, a web service and a SQL Server database. The Web application will invoke the web service, the web service invokes the SQL Server stored procedure. I let the web...
5
by: sonali_reddy123 | last post by:
Hello all, I am trying to develop an application which will run as a windows service. The application should have Normal options available with service like start, stop and pause but along...
0
by: =?Utf-8?B?U2ltb25EZXY=?= | last post by:
Hi All I would like to install the same Windows Service project on the same server under different names, one for each customer. I have been able to do it but I would like an expert opinion as...
30
by: diane | last post by:
I've got an application running with table-based security: i capture the user's windows login with fOsusername, then have them enter a password checked against their username/login in my own table....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.