Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!cc.usu.edu!sl87m From: sl87m@cc.usu.edu (The Barking Pumpkin Digital Gratification Ensemble) Newsgroups: comp.sys.amiga.programmer Subject: Re: Device List Message-ID: <1991Jun24.123933.48206@cc.usu.edu> Date: 24 Jun 91 18:39:33 GMT References: Organization: Utah State University Lines: 31 In article , ad99s461@sycom.UUCP (Alex Deburie) writes: > Help! I am desperate need of information on scanning the Device List. > I tried the example in Amiga Worlds Tech Journal, but I found some strange > things happening within it. > The RAM: device never seems to show up in the device list. RAM DISK: does, but > if I, or someone using my program, were to rename RAM DISK: as FRED:, I would > have no way of knowing it is really a RAM: disk. > Also, I can't seem to find a way to find out what is a DiskDrive and what is > not. While my complete device list gives me DF0: and DF1:, both have different > disk types. I've tried the file-lock value from the device list, but this was > incosistant too. > > ANY help would be greatly appreciated. > > -- Alex Deburie I don't know if this is a long route to your answer, or even if it'll help, but try getting to the device list by following these pointers: DOSBase->dl_Root->rn_Info->di_DevInfo (Go through your include files in libraries/dosextens, and /filehandler to find the types necesary -- beware of the BPTRs!!!!) If you need more info, you can follow struct DeviceNode's dn_Startup to find more information about the structure of the device. --- James Knowles #include #include