home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11827 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  1.3 KB

  1. Path: sparky!uunet!gatech!psuvax1!rutgers!cbmvax!cbmehq!cbmger!edohwg!heinz
  2. From: heinz@edohwg.UUCP (Heinz Wrobel)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Going from volume lock to device name
  5. Message-ID: <heinz.02rq@edohwg.UUCP>
  6. Date: 29 Jul 92 21:32:01 GMT
  7. References: <rfmmkdp.davids@netcom.com>
  8. Organization: Edotronik GmbH
  9. Lines: 24
  10.  
  11. In article <rfmmkdp.davids@netcom.com> davids@netcom.com (Dave Schreiber) writes:
  12. >Can anyone tell me how to get a device name, given a lock on the volume
  13. >that the device is associated with.  I'm writing a program that takes
  14. >as input locks (to disks) from Workbench, and need to go to the appropriate
  15. >device name ("DF0:", "WB_2.X:", etc).
  16. >
  17. >[code deleted]
  18. >
  19. >am I missing something (Kickstart V37.175, Workbench V37.67)?
  20.  
  21. Don't walk the DeviceList. You don't have to and it's messy anyway.
  22.  
  23. Use the dos NameFromLock() function and clip anything after the devicename
  24. you're looking for.
  25.  
  26. >Dave Schreiber/davids@netcom.com (until 9/15/92)/"Ask, don't touch"
  27.  
  28. --
  29. Heinz Wrobel, Edotronik GmbH (ECG018)
  30. FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
  31. Path: cbmehq!cbmger!edohwg!heinz@cbmvax.commodore.com
  32. "It's good to have a mouse, it's faster if you can do without one..."
  33. "He who doesn't develop with an A2024 doesn't know about font independent
  34.  user interfaces..."
  35.