🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to check a HANDLE?

#8599
From: Azazello
Date: Thu, 07 Oct 2004 15:22
9 lines
1429 bytes
> CloseHandle won't do what I want as I wish to verify the handle passed to 
> my function and then use it for file access.

I assumed so ;). I was suggesting using CloseHandle together with 
DuplicateHandle - CloseHandle would fail on invalid handle and would close 
good DUPLICATED handle. Original handle would be intact. But it's irrelevant 
anyway, since DuplicateHandle works itself. ;)

Azazello.
Technical Details
Message-ID: <41655ee6$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <416541a3@newsgroups.borland.com> <41654815$1@newsgroups.borland.com> <41655db3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d6f466f618c24d8b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Azazello" <snimi_potniki@hotmail.com>
From: "Azazello" <snimi_potniki@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References:  <416541a3@newsgroups.borland.com> <41654815$1@newsgroups.borland.com> <41655db3@newsgroups.borland.com>
Subject: Re: How to check a HANDLE?
Date: Thu, 7 Oct 2004 08:22:27 -0700
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 142.58.249.61
Message-ID: <41655ee6$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097162470 142.58.249.61 (7 Oct 2004 08:21:10 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail