🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: AttachThreadInput

#3371
From: Mark Guerrieri
Date: Wed, 05 Jul 2006 13:48
15 lines
1887 bytes
> You shouldn't even be dealing with desktops to begin with, unless you are
> writing your own service.  In which case, you shouldn't be showing a modal
> form from a service anyway.

I'm not dealing with other desktops.  My OOP server is just an EXE that runs 
in the context of the logged in user.  I only put that code in there for 
error checking, since I have no control of who or what calls into the 
server, or from where.  I just have a method that shows a modal "login" form 
and needs to force its way to the forground, but which fails when called 
from within an Shell Namespace Extension.  As you said, the API states you 
should not AttachThreadInput to a thread in another desktop or to a system 
thread.  I put the test for other desktops in for the sake of completeness, 
and now I am looking for a check for a "system thread."

Mark 
Technical Details
Message-ID: <44abc321@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44a95f6d$1@newsgroups.borland.com> <44a97313$1@newsgroups.borland.com> <44a97c05$1@newsgroups.borland.com> <44a98345$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c5eaab2d607d9547
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mark Guerrieri" <mguerrieri@no_spam_verizon.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44a95f6d$1@newsgroups.borland.com> <44a97313$1@newsgroups.borland.com> <44a97c05$1@newsgroups.borland.com> <44a98345$1@newsgroups.borland.com>
Subject: Re: AttachThreadInput
Date: Wed, 5 Jul 2006 09:48:12 -0400
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 71.248.209.167
Message-ID: <44abc321@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1152107297 71.248.209.167 (5 Jul 2006 06:48:17 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail