home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5282 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: univ-lyon1.fr!news
  2. From: Laurent GIROUD <milu28@bat710.univ-lyon1.fr>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: How to get unit numbers with dos handlers ?
  5. Date: Tue, 12 Mar 1996 14:07:46 +0100
  6. Organization: C.I.S.M.  Universite de Lyon 1 / INSA de Lyon
  7. Message-ID: <31457722.6ACA@bat710.univ-lyon1.fr>
  8. NNTP-Posting-Host: miage.univ-lyon1.fr
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; HP-UX A.09.04 9000/856)
  13.  
  14. Hi everyone here,
  15.  
  16.   I'm currently writing a little C program and needs some informations
  17. about DOS.
  18.  
  19.   What i'm trying to do is -> being passed (as an argument parsed with
  20. ReadArg()) a dos device name (DF0:, PC0: DH0: or anyother), how could
  21. i know how many different units of this device are currently mounted
  22. by AmigaDOS ?
  23.  
  24.     ie : i've got the string "DF0:" how may i know if other units
  25. using the trackdisk device and the OFS/FFS are mounted and know their
  26. names ?
  27.  
  28.    I've been trying to locate the device using LockDosList() and 
  29. FindDosEntry() but it doesn't seem to work. May this come from the
  30. fact that DF0:, DF1: are actually handlers (although being called
  31. devices by amigados) ?
  32.  
  33.  Thank you in advance
  34.  
  35.  
  36. Laurent Giroud
  37. milu28@bat710.univ-lyon1.fr
  38.