Article View: borland.public.cppbuilder.nativeapi
Article #3366Re: AttachThreadInput
From: Remy Lebeau (TeamB)
Date: Mon, 03 Jul 2006 20:49
Date: Mon, 03 Jul 2006 20:49
18 lines
1591 bytes
1591 bytes
"Mark Guerrieri" <mguerrieri@no_spam_verizon.net> wrote in message news:44a97c05$1@newsgroups.borland.com... > if(ThisThreadID != ForegroundThreadID && GetThreadDesktop(ThisThreadID) > != GetThreadDesktop(ForegroundThreadID)) You are ot closing the desktop handles that you are retreiving. With that sai, you can't attach to a thread to another thread in a different desktop. The documentation for AttachThreadInput() even says as much. 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. Gambit
Technical Details
Message-ID:
<44a98345$1@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-mailReferences:
<44a95f6d$1@newsgroups.borland.com> <44a97313$1@newsgroups.borland.com> <44a97c05$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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <44a95f6d$1@newsgroups.borland.com> <44a97313$1@newsgroups.borland.com> <44a97c05$1@newsgroups.borland.com> Subject: Re: AttachThreadInput Date: Mon, 3 Jul 2006 13:49:09 -0700 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <44a98345$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1151959877 68.69.17.41 (3 Jul 2006 13:51: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