Amiga.org

Operating System Specific Discussions => Amiga OS => Amiga OS -- Development => Topic started by: gazsp on October 26, 2005, 12:32:40 PM

Title: OS library call to get list of drives / assigns
Post by: gazsp 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?
Title: Re: OS library call to get list of drives / assigns
Post by: Piru 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.
Title: Re: OS library call to get list of drives / assigns
Post by: gazsp on October 26, 2005, 12:47:43 PM
Cool, cheers dude.