🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7539

Re: HELP: How does one identify a drive as a Novell network drive?

#7539
From: Janos Haide
Date: Fri, 08 Jan 1993 16:14
56 lines
2239 bytes
In article <2TP1wB4w165w@cibbs.UUCP> root@cibbs.UUCP writes:
>I am attempting to determine how to look at say teh DOS media descriptor for a
>drive in memory to determine if this is a network drive. I've posted about this
>before and got no response.
>
>Anyone what to look for? I have used my resources regarding DOS programming and
>they never mention network drives.
>
>Someone in here once posted that they were able to make a change to the media
>descriptor to make DOS this that a network drive was a hard drive. Obvoisuly
>this is possible, but what would information would one look for determining if
>a drive was on the network, or local?
>
>Any informaion regarding this would be appreciated.
>Mark
>
>----
>Club InSaNiTy BBS   |   BBS:+1 416 691 0679 |   root@cibbs.UUCP
>DataSoft Consulting | Voice:+1 416 691 5529 |   uunorth!cibbs!root
>Mark Buckaway       | Toronto, Ont. CANADA  |   1@4653 (WWIVnet)

Mark,

Here is a code snippet from Al Stevens' DFlat library that might help.

 /* ---- test for network or RAM disk ---- */
 regs.x.ax = 0x4409;     /* IOCTL func 9 */
 regs.h.bl = dr+1;
 int86(DOS, &regs, &regs);
 if (!regs.x.cflag)    {
     if (regs.x.dx & 0x1000)
         strcat(drname, " (Network)");
     else if (regs.x.dx == 0x0800)
         strcat(drname, " (RAMdisk)");
 }

Now, how do you know it's a Novell network drive :
Check if you'se running on top of a Novell network.

If you're sure that you're running Netware, here's an alternate method:

mov ax, e900
mov dx, drivenum ; a: = 0 ...
int 21

on return ah has the drive flags:
bit 0: perm. handle
bit 1: temp handle (both mean NetWare drives)
bit 7: local drive

Hope this helps,
Janos
jhaide@novell.com

disclaimer!
 
Technical Details
Message-ID: <1993Jan8.161458.4758@novell.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!gateway.univel.com!ns.novell.com!novdpd!jhaide
References: <2TP1wB4w165w@cibbs.UUCP>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!gateway.univel.com!ns.novell.com!novdpd!jhaide
From: jhaide@novell.com (Janos Haide)
Subject: Re: HELP: How does one identify a drive as a Novell network drive?
Message-ID: <1993Jan8.161458.4758@novell.com>
Organization: Novell, Inc. --Austin
References: <2TP1wB4w165w@cibbs.UUCP>
Date: Fri, 8 Jan 1993 16:14:58 GMT
Lines: 56