Re: Invalid handle question
- From: "anton bassov"<xxx@xxxxxxx>
- Date: Mon, 5 Jun 2006 15:07:30 -0500
Hi Gary
//////////
What about GetCurrentProcess? It's a valid HANDLE, even if it doesn't
correspond to an actual location in memory. Whether 0 or -1 is valid
or invalid just depends on the API call in question.
But it's not a file handle so different rules apply.
//////////
It is more than just "not a file handle" - it is not a handle at all!!! It
is just a pseudo-handle, and opening it does not require Object Manager's
involvement.
Concerning DOS and 0, you just misunderstood my question - I was not asking
whether you can specify 0 as a handle in a function call. I was asking
whether 0 was really a handle (i.e. opening it required actual system
services involvement), or just a pseudo-handle under DOS. However, you did
not answer this question
Anton Bassov
.
- Follow-Ups:
- Re: Invalid handle question
- From: David Jones
- Re: Invalid handle question
- From: Gary Chanson
- Re: Invalid handle question
- References:
- Re: Invalid handle question
- From: Gary Chanson
- 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
|