Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

NT Service

Posted on 2003-11-11
4
Medium Priority
?
240 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 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

688 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