Article View: borland.public.cppbuilder.nativeapi
Article #8607Re: How to check a HANDLE?
From: Ed Mulroy [TeamB]
Date: Thu, 07 Oct 2004 20:20
Date: Thu, 07 Oct 2004 20:20
15 lines
1563 bytes
1563 bytes
> Why not just use the file handle as-is and > then catch any errors that result from using > an invalid handle? That is what I am doing now. Since there are things like IsBadReadPtr and IsWindow I thought there might be something like IsValidHandle. Such a thing would save some time and code over catching the errors later and risking a value that makes Windows go wierd instead of just generating an error. . Ed > Remy Lebeau wrote in message > news:41657423$1@newsgroups.borland.com...
Technical Details
Message-ID:
<4165a525@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<416541a3@newsgroups.borland.com> <41654815$1@newsgroups.borland.com> <41655db3@newsgroups.borland.com> <41657423$1@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 From: "Ed Mulroy [TeamB]" <dont_email_me@invalid.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <416541a3@newsgroups.borland.com> <41654815$1@newsgroups.borland.com> <41655db3@newsgroups.borland.com> <41657423$1@newsgroups.borland.com> Subject: Re: How to check a HANDLE? Date: Thu, 7 Oct 2004 16:20:49 -0400 Lines: 17 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; Original NNTP-Posting-Host: 12.161.27.76 Message-ID: <4165a525@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1097180453 12.161.27.76 (7 Oct 2004 13:20:53 -0700) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newshosting.com!nx01.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail