Re: Invalid handle question
- From: "anton bassov"<xxx@xxxxxxx>
- Date: Sun, 4 Jun 2006 22:18:41 -0500
Hi guys
I thought that we are speaking about NT-based systems.....
In fact, I don't really know if the example that David gave means that NULL
handle in itself is valid under DOS - it depends on the context, in which
this handle is being used. To give you an idea, when you create a file
mapping, you can pass (HANDLE)-1 as an argument to CreateFileMapping() in
order to create a file-mapping object that is backed by the operating-system
paging file(which is true for both 9x and NT). However, it does not really
mean that (HANDLE)-1 is a handle to the operating-system paging file, does
it???
Can you use NULL handle for stdin in all function calls that
expect a file handle? I don't know anything about it - in the days of DOS
and 16-bit Windows I had very remote idea what the PC looks like (my
programming experience started in 1997 with Excel VBA macros)
Anton Bassov
.
- Follow-Ups:
- Re: Invalid handle question
- From: Gary Chanson
- Re: Invalid handle question
- References:
- Re: Invalid handle question
- From: David J. Craig
- Re: Invalid handle question
- Prev by Date: Re: DLL Injection from kernel-land
- Next by Date: Re: Invalid handle question
- Previous by thread: Re: Invalid handle question
- Next by thread: Re: Invalid handle question
- Index(es):
Relevant Pages
|
Loading