Mail Archives: djgpp-workers/2003/04/20/13:02:07
Hello.
Eli Zaretskii wrote:
>
> > Date: Sun, 20 Apr 2003 10:29:02 +0100
> > From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
> >
> > It's interesting that 'getshare' doesn't know
> > about unavailable disks. The code doesn't ignore unavailable disks, so it
> > looks like your OS (Win2k/XP?) doesn't report unavailable disks via the
> > LANMan APIs.
>
> Actually, I'm guessing that unavailable disks simply return an error
> when you call Int 21h/AX=5F46h. That is, they don't show in the list
> returned by that function. But that's just a guess.
There's only one call to get the list of shares. So if it returns an error for
unavailable disks, the whole call should have failed and Andrew should have
seen no mappings listed by the test program.
Presumably you mean that the error is an internal error in the code
implementing Int 21h/AX=5F46h, so that it just ignores that drive and returns
no information for it? That seems a bit odd, when there is a status field in
the use_info_1 structure (which I called "share_info" in the code).
Thanks, bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -