Path: utzoo!attcan!uunet!super!udel!gatech!rutgers!ucsd!ames!elroy!aero!trwrb!cadovax!keithd From: keithd@cadovax.UUCP (Keith Doyle) Newsgroups: comp.sys.amiga.tech Subject: Re: Need help with .... Message-ID: <2241@cadovax.UUCP> Date: 8 Sep 88 23:46:40 GMT References: <298@lexicon.UUCP> <6234@batcomputer.tn.cornell.edu> Reply-To: keithd@cadovax.UUCP (Keith Doyle) Organization: Contel Business Systems, Torrance, CA Lines: 24 In article <6234@batcomputer.tn.cornell.edu> riley@tcgould.tn.cornell.edu (Daniel S. Riley) writes: >>4) Would like to find out the names for file system devices >>currently running ("DF0:", "DH0:", "VD0:", etc.). This is for >You might look at the routine to show locks, written by Chuck McManis, >or look in the browser code in mg. The basic code, taken from Chuck's >program, looks something like this: >rn = (struct RootNode *) DOSBase->dl_root; >di = (struct DosInfo *) BADDR(rn->rn_info); >dl = (struct DeviceList *) BADDR(di->di_DevInfo); >and the next one is >dl = (struct DeviceList *) BADDR(dl->dl_next); >The device name is in the DeviceList entry, along with info on the type >of entry, etc...look in dos.h and dosextens.h for details. I found that if you get to the DeviceList from a FileLock, it won't get you DF0: DF1: VD0: RAM: etc., you get the logical names of the disk that is in the drive, not the physical device names. Haven't tried chasing it from the RootNode though, I guess it could be different. How do you weed out devices like SER: PAR: PIPE: etc? Is it possible to determine the *device* name (not the disk name) from the FileLock in any way? Keith Doyle # {ucbvax,decvax}!trwrb!cadovax!keithd Contel Business Systems 213-323-8170