Article View: borland.public.cppbuilder.nativeapi
Article #11755Re: SHExecInfo.hInstApp != GetWindowLong(hwnd,GWL_HINSTANCE);
From: Rodrigo
Date: Fri, 23 Jan 2004 21:19
Date: Fri, 23 Jan 2004 21:19
21 lines
1849 bytes
1849 bytes
Thanks A LOT for all your help... All right... If going for the ShellExecute way; you said I would need to use a CreateProcess function so I could use retrieve the process handle, but wouldn't it create anoter instance of the app? or how to make "CreateProcess" refer to the current spawned app? (all I need is the window handle of the frist spawned app) Now, if going for the CreateProcess option, I have two questions: 1.- Would WaitForSingleObject accept a ProcessID, thread of process handle from the PROCESS_INFORMATION? 2.-How do I retrieve the Application Name associated to the file extension?, what if it is not a file but a folder or even an exe? (this is why I prefer the ShellExecute, however I'm not married to it, I just don't know how to use it properly). I appreciate all your kind attention... Regards... <Rodrigo>.
Technical Details
Message-ID:
<401190bb@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<401157db$2@newsgroups.borland.com> <401171bf@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 13:40:21 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> Subject: Re: SHExecInfo.hInstApp != GetWindowLong(hwnd,GWL_HINSTANCE); Date: Fri, 23 Jan 2004 13:19:56 -0800 Lines: 23 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: 200.38.16.98 Message-ID: <401190bb@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074892987 200.38.16.98 (23 Jan 2004 13:23:07 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail