Welcome, Guest. Please login or register.
Amiga Kit Amiga Store Hollywood MAL AMIStore App Store A600 Memory

AuthorTopic: OS library call to get list of drives / assigns  (Read 730 times)

0 Members and 1 Guest are viewing this topic.

Offline gazsp

OS library call to get list of drives / assigns
« on: October 26, 2005, 12:32:40 PM »
Does anybody know an easy way to get a list of drives or assigns on an OS3 machine?
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
  • Total likes: 0
    • http://www.iki.fi/sintonen/
Re: OS library call to get list of drives / assigns
« Reply #1 on: October 26, 2005, 12:43:22 PM »
Read dos.library autodoc for functions:

dos.library/LockDosList
dos.library/NextDosEntry
dos.library/UnLockDosList

Remember that you shouldn't call any high level functions (esp not dos I/O!) while keeping the dos list lock. In most cases you need to build a list to memory and only process it after UnLockDosList.
 

Offline gazsp

Re: OS library call to get list of drives / assigns
« Reply #2 on: October 26, 2005, 12:47:43 PM »
Cool, cheers dude.