🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14120

Re: FindWindow from a NT-Service

#14120
From: Remy Lebeau (TeamB)
Date: Wed, 27 Aug 2003 16:50
24 lines
1704 bytes
"MWP" <mwp@overclockers.com.au> wrote in message
news:3f4c6dd2$1@newsgroups.borland.com...

> Is it possible to have FindWindow work under a service
> like it does in a normal app?

Only if the service is configured to "Interactive with the Desktop".
Otherwise, the service will not be running under the same workstation and
desktop as the user and thus cannot access the user's resources.

> I need to get an apps handle to be able to use SendMessage.

Without the "Interact with the Desktop" option enabled, you cannot send
messages across desktops/workstations.


Gambit


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/03
Technical Details
Message-ID: <3f4ce15a$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f4c6dd2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,15e8ebc93f82945a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-27 09:56:54 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f4c6dd2$1@newsgroups.borland.com>
Subject: Re: FindWindow from a NT-Service
Date: Wed, 27 Aug 2003 09:50:36 -0700
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f4ce15a$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1062003034 207.175.226.26 (27 Aug 2003 09:50:34 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail