Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

NT Service

Posted on 2003-11-11
4
Medium Priority
?
241 Views
Last Modified: 2010-04-05
Hi all,

I have created my own Service but have a problem starting up a GUI app from my Service.
If I use ShellExecute (with different parameters at the end  -  0, 1, ws_shownormal etc.), it does start it up but as a process, it does not actually open up the App.

Can someone please help me out here ?

Thanks !!

Pieter
0
Comment
Question by:PieterJ
  • 4
4 Comments
 
LVL 5

Accepted Solution

by:
snehanshu earned 1000 total points
ID: 9728747
I think you would have to check the "Allow Service to Interact with The Desktop" checkbox in the service properties.
Right click your service from
Control Panel -> Administrative tools -> Services -> <your Service>
in the [Log on] tab

HTH,
...Snehanshu
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 9728765
And regarding your question
>>Delete Question Q_20604662
Post it in the CS section
http://www.experts-exchange.com/Community_Support
:-)
...Snehanshu
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 9728827
Some related links:
How can I allow my service to interact with desktop?
http://www.dotnet247.com/247reference/msgs/33/166835.aspx

How to enable a service to interact  with desktop when the service is not running under the localSystem account?
http://www.experts-exchange.com/Operating_Systems/Q_20572206.html

:-)
0
 
LVL 5

Expert Comment

by:snehanshu
ID: 9780969
Hey
  I just figured out that if you set the "interactive" property of your service to true then the "Allow Service to Interact with The Desktop" gets checked on install.
...Shu
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question