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