🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to check a HANDLE?

#8601
From: Bob Gonder
Date: Thu, 07 Oct 2004 16:05
11 lines
1289 bytes
Ed Mulroy [TeamB] wrote:

>Does anyone know a way supplied by Windows to check if a HANDLE is 
>valid, maybe something similar to IsValidLocale, IsBadReadPtr or 
>IsWindow?
>
>I'm specifically interested in checking a handle to an open file.

I suppose INVALID_HANDLE_VALUE isn't what you're after.

How about GetFileType()
Technical Details
Message-ID: <drpam09dboq39i6kgrhe739k85ea8t2s0t@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d6f466f618c24d8b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to check a HANDLE?
Date: Thu, 07 Oct 2004 09:05:23 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <drpam09dboq39i6kgrhe739k85ea8t2s0t@4ax.com>
References: <416541a3@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.34.193.40
X-Trace: newsgroups.borland.com 1097165122 69.34.193.40 (7 Oct 2004 09:05:22 -0700)
Lines: 12
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail