Article View: borland.public.cppbuilder.nativeapi
Article #10808CreateProcess question
From: Mortz
Date: Tue, 16 Mar 2004 17:13
Date: Tue, 16 Mar 2004 17:13
19 lines
1689 bytes
1689 bytes
Hi everyone: I have a question regarding to the handles retrieved by the CreateProcess function because the documentation says you have to close the HProcess and HThread when they are no longer needed. My application opens documents using "FindExecutable" and "CreateProcess", it also uses "WaitForSingleObject" to monitor when the spawned application closes [Thanks Gambit!!! :D]. Currently, I'm closing the handles when the "WaitForSingleObject" function returns, however those documens may remain open after my program closes, so the question is: should I close the handles when my program closes even if the files remain open? Thank your for your time and any help provided... <MortZ>
Technical Details
Message-ID:
<405734e0@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2505b8cff121ddb,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-16 09:10:41 PST Reply-To: "Mortz" <rmorteo@hotmail.com> From: "Mortz" <rmorteo@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: CreateProcess question Date: Tue, 16 Mar 2004 09:13:58 -0800 Lines: 21 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: <405734e0@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1079456992 200.38.16.98 (16 Mar 2004 09:09:52 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail