Solved

NT Service

Posted on 2003-11-11
4
238 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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
How to debug For loops? 3 75
Controlled Assessment GCSE - desperate help needed 4 122
Find and Replace Stream with 0s 8 88
DBCtrlGrid, Delphi, Scroll 8 87
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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

752 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