Re: Invalid handle question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
.



Relevant Pages

  • ofstream problem opening file
    ... XP computer and a DOS computer via a serial port. ... The Windows program ... The first file gives an unexplainable error on opening the ...
    (comp.lang.cpp)
  • Re: Outlook EXPRESS: inability to send email (one more thing)
    ... four packets lost. ... >Try opening a command (dos) prompt and type: ...
    (microsoft.public.outlook)
  • Re: Who needs a good opening?
    ... I was thinking about opening paragraphs I had read ... the most beautiful venya — strongwomen — in the world. ... What are some Dos and Don'ts of openings? ...
    (rec.arts.sf.composition)
  • Re: embedded unziped files
    ... > An e-mail was sent to me with a virus that was ziped. ... > With my opening the file most of the files unziped and ... Is there any way to get into dos using ... > possible delet them. ...
    (microsoft.public.windowsxp.embedded)