Re: Invalid handle question



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
.



Relevant Pages

  • Re: Win2K error dialogs
    ... o Trying to run Fujitsu's diagnostics but they require DOS and the drive is ... formatted NTFS so can't be seen in DOS. ... David R. Schwartz ...
    (microsoft.public.win2000.general)
  • Re: UGH, TOO MUCH SPAM
    ... Speaking for myself, it's annoying but not like DoS. ... first cup of java and get on with my life. ...
    (comp.os.linux.misc)
  • Re: AINT NO DOS?
    ... And David is my middle name!:-) ... > Michael Solomon MS-MVP ... > Backup is a PC User's Best Friend ... >>> could modify my own responses to the effect there's no DOS ...
    (microsoft.public.windowsxp.basics)
  • Re: Extent of Signal crayfish
    ... >I know these tasty beasts live in the K and A canal around reading, but dos ... David probably better posting to uk.rec.fishing.coarse as of course this is ... look at the distribution map ...
    (uk.rec.fishing.sea)
  • Re: Sys File checker
    ... "David" said in news:%235vyEHiGEHA.3540@TK2MSFTNGP09.phx.gbl: ... > now with the mods done to the sys file I want to copy back the ... Now if it was good old Dos there would be no ... Download and try using Microsoft's inuse.exe utility to replacement ...
    (microsoft.public.windowsxp.help_and_support)

Loading