🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Finding a Spawned Window

#10933
From: Mortz
Date: Fri, 05 Mar 2004 21:39
27 lines
2136 bytes
Hi everyone...
Thanks for your prompt reply...

After reading your posts and a brief review over the MSDN web site I have
three questions:

> Use CreateProcess() instead.  It can return the process ID for the spawned
> process.  You can then use EnumWindows() and GetWindowThreadProcessId() to
> find all windows that belong to that same process ID.  You are currently
> trying to compare process handles instead, which is not exactly the same
> thing.

Does the CreateProcess open a folder when a folder path is given instead of
a path + filename?

> About Bobs comment :
> If you are using ShellExecuteEx because you don't know the name of the
> executable for the file, you can use
> FindExecutable() to get the proper exe to use in CreateProcess.

How can I show the "Open with" window when there's no associated program to
the filename extension?

If the above situation is solved by calling GetLastError(), how do I use
this function?

Thanks for all your help...
Technical Details
Message-ID: <4048f2c1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!border1.nntp.ash.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!news.moat.net!lon-transit.news.telstra.net!lon-in.news.telstra.net!news.telstra.net!202.12.144.25.MISMATCH!mws-stat-syd.cdn.telstra.com.au!newsx!newsgroups.borland.com!not-for-mail
References: <4048c64f$1@newsgroups.borland.com> <4048d25f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6b6fbcbb8d2db5cb
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-05 13:40:22 PST
Reply-To: "Mortz" <rmorteo@hotmail.com>
From: "Mortz" <rmorteo@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4048c64f$1@newsgroups.borland.com> <4048d25f@newsgroups.borland.com>
Subject: Re: Finding a Spawned Window 
Date: Fri, 5 Mar 2004 13:39:57 -0800
Lines: 29
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: <4048f2c1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1078522561 200.38.16.98 (5 Mar 2004 13:36:01 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!border1.nntp.ash.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!news.moat.net!lon-transit.news.telstra.net!lon-in.news.telstra.net!news.telstra.net!202.12.144.25.MISMATCH!mws-stat-syd.cdn.telstra.com.au!newsx!newsgroups.borland.com!not-for-mail