Solved

NT Service

Posted on 2003-11-11
4
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
4 Comments
 
LVL 5

Accepted Solution

by:
snehanshu earned 250 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month11 days, 18 hours left to enroll

623 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