Re: INVALID_HANDLE_VALUE vs. NULL
- From: "Gary Chanson" <gchanson@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 14 May 2005 17:32:17 -0400
"qfel" <[q_tmp]@[aster.pl]> wrote in message
news:42865947$0$27735$f69f905@xxxxxxxxxxxxxxxxxx
> From CloseHandle:
> This function will throw an exception if either a handle value that is not
> valid (or 0)
> It implies 0 (NULL) is not valid for any handle closeable by CloseHandle, so
> actually all kernel handles, right?
Wrong. Where do you see that? I don't.
0 is a valid handle and passing it to CloseHandle does not cause an
exception.
--
-GJC [MS Windows SDK MVP]
-Software Consultant (Embedded systems and Real Time Controls)
- http://www.mvps.org/ArcaneIncantations/consulting.htm
-gchanson@xxxxxxxx
.
- Follow-Ups:
- Re: INVALID_HANDLE_VALUE vs. NULL
- From: Slava M. Usov
- Re: INVALID_HANDLE_VALUE vs. NULL
- From: qfel
- Re: INVALID_HANDLE_VALUE vs. NULL
- From: Frank A. Uepping
- Re: INVALID_HANDLE_VALUE vs. NULL
- References:
- INVALID_HANDLE_VALUE vs. NULL
- From: Frank A. Uepping
- Re: INVALID_HANDLE_VALUE vs. NULL
- From: Arkady Frenkel
- Re: INVALID_HANDLE_VALUE vs. NULL
- From: Frank A. Uepping
- Re: INVALID_HANDLE_VALUE vs. NULL
- From: Gary Chanson
- Re: INVALID_HANDLE_VALUE vs. NULL
- From: qfel
- INVALID_HANDLE_VALUE vs. NULL
- Prev by Date: Re: newbie questions about pageable code
- Next by Date: Re: What is best design for this scenario - function which waits if nothing in queue
- Previous by thread: Re: INVALID_HANDLE_VALUE vs. NULL
- Next by thread: Re: INVALID_HANDLE_VALUE vs. NULL
- Index(es):
Relevant Pages
|