Article View: borland.public.cppbuilder.nativeapi
Article #9073Re: How to start App from within service
From: Vladimir Stefanovic
Date: Thu, 12 Aug 2004 13:36
Date: Thu, 12 Aug 2004 13:36
22 lines
1634 bytes
1634 bytes
Thanks Remy for the additional info. I'll bookmark this (I think it will be of some use to me). Best regards, Vladimir Stefanovic > The new process is started in the context of the user account, desktop, and > workstation as the calling thread. Services, even interactive ones, do not > normally run under the context of the same desktop that the user visually > interacts with. Thus the spawned process is not viewable when spawned from > a server. As such, try calling SetProcessWindowStation() and > SetThreadDesktop() before calling ShellExecute() or CreateProcess(). > > > Gambit > >
Technical Details
Message-ID:
<411b728c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!newscore.univie.ac.at!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<411a1f8b@newsgroups.borland.com> <411a5433$1@newsgroups.borland.com> <411b1d40$1@newsgroups.borland.com> <411b25b8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,f682bd6ac625431d X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Vladimir Stefanovic" <spam@not.needed> Newsgroups: borland.public.cppbuilder.nativeapi References: <411a1f8b@newsgroups.borland.com> <411a5433$1@newsgroups.borland.com> <411b1d40$1@newsgroups.borland.com> <411b25b8$1@newsgroups.borland.com> Subject: Re: How to start App from within service Date: Thu, 12 Aug 2004 15:36:51 +0200 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 213.137.116.155 Message-ID: <411b728c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1092317836 213.137.116.155 (12 Aug 2004 06:37:16 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!newscore.univie.ac.at!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail