Re: Unmounting an arbitrary volume
Re: Unmounting an arbitrary volume
- Subject: Re: Unmounting an arbitrary volume
- From: "Dr. Ian Silvester" <email@hidden>
- Date: Fri, 06 Jul 2007 12:11:23 +0100
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".
I'll know the volume name that I'd like to unmount - I'm guessing
this'll be included in the info returned per volume and I can make a
match on that?
Thanks for the pointer,
Ian
_______________________________________________
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