Re: Unmounting an arbitrary volume
Re: Unmounting an arbitrary volume
- Subject: Re: Unmounting an arbitrary volume
- From: Ben Artin <email@hidden>
- Date: Fri, 6 Jul 2007 03:42:32 -0400
Once I have mounted one or more network volumes, I am aware that
each is assigned an FSVolumeRefNum. To unmount, it is this ID I
must pass. Clearly I do not wish to store locally the IDs of all
volumes I've mounted (and indeed I might not have mounted all
available net volumes), so how do I access the system's list of
mounted volumes, and how do I identify a specific volume in order
to obtain it's FSVolumeRefNum in order to unmount it?
FSGetVolumeInfo will iterate over volumes. Pass it successive
integers in volumeIndex until you get an error back. How you might
identify a volume depends on what you mean by "identify".
Hth,
Ben
--
<http://artins.org/ben>
"And when I have understanding of computers, I shall be
the supreme being!" -- Evil, "Time Bandits"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden