473,471 Members | 1,981 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2618
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....
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...
0
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
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
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
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...
0
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,...
1
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
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...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.