Article View: borland.public.cppbuilder.nativeapi
Article #17330Re: ShellExecute
From: nicolasr
Date: Thu, 03 Apr 2003 20:07
Date: Thu, 03 Apr 2003 20:07
15 lines
1614 bytes
1614 bytes
Hi, > Personally, I prefer to use CreateProcess() instead, and then compare the > numeric process IDs instead o the actual handles if he used CreateProcess() he could compare the process IDs in his window enumeration (using GetWindowThreadProcessId() for the currently enumerated window). That could be a solution. But then I saw that he is opening a document. Is this possible with CreateProcess(), assuming you don't know the associated application? Since ShellExecuteEx returns the process handle, is there a way to get process IDs from process handles? Nick
Technical Details
Message-ID:
<3e8c9481$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e8c0ea4@newsgroups.borland.com> <3e8c5793$1@newsgroups.borland.com> <3e8c5dce@newsgroups.borland.com> <3e8c7d44@newsgroups.borland.com> <3e8c8d8f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,bff1fa0e8e8777f2 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-04-03 12:11:45 PST From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <3e8c0ea4@newsgroups.borland.com> <3e8c5793$1@newsgroups.borland.com> <3e8c5dce@newsgroups.borland.com> <3e8c7d44@newsgroups.borland.com> <3e8c8d8f$1@newsgroups.borland.com> Subject: Re: ShellExecute Date: Thu, 3 Apr 2003 22:07:46 +0200 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 80.133.167.176 Message-ID: <3e8c9481$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1049400449 80.133.167.176 (3 Apr 2003 12:07:29 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail