Article View: borland.public.cppbuilder.nativeapi
Article #11760Re: SHExecInfo.hInstApp != GetWindowLong(hwnd,GWL_HINSTANCE);
From: Rodrigo
Date: Sat, 24 Jan 2004 02:17
Date: Sat, 24 Jan 2004 02:17
13 lines
1908 bytes
1908 bytes
Hi Again... I made some tests but it still does not retrieve the spawned app window handle, perhaps I'm missing something. As far as I understand EnumWindows will loop until either the callback function returns false or all top-level windows are enumerated. While debugging I noticed that the callback function does retrieve the processID and that OpenProcess gets the process handle, however the obtained handles do not match the one that belongs to my spawned app. Would this be bacause it is not a top-level window (I have not found a definition of what a top-level window is)? Does it have to do with the way the app is spawned (the passed parent handle or something like that)?.
Technical Details
Message-ID:
<4011d5c4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<401157db$2@newsgroups.borland.com> <401171bf@newsgroups.borland.com> <401190bb@newsgroups.borland.com> <40119ad1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,b936e6c0846d144e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-23 18:39:34 PST Reply-To: "Rodrigo" <rmorteo@eudoramail.com> From: "Rodrigo" <rmorteo@eudoramail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <401157db$2@newsgroups.borland.com> <401171bf@newsgroups.borland.com> <401190bb@newsgroups.borland.com> <40119ad1$1@newsgroups.borland.com> Subject: Re: SHExecInfo.hInstApp != GetWindowLong(hwnd,GWL_HINSTANCE); Date: Fri, 23 Jan 2004 18:17:41 -0800 Lines: 15 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.1165 NNTP-Posting-Host: 158.97.22.221 Message-ID: <4011d5c4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074910660 158.97.22.221 (23 Jan 2004 18:17:40 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail