Re: AFP Shares
Re: AFP Shares
- Subject: Re: AFP Shares
- From: "Philip D. Wasson" <email@hidden>
- Date: Mon, 12 Mar 2007 17:26:34 -0400
On Mar 12, 2007, at 16:59, Mike Gargano wrote:
Does anyone know how to mount AFP shares programmatically? The
calls to AFPCreateSharedVolumesEnumerator and AFPMountSharedVolume
seem to hang on Intel machines. According to the documentation it
looks like these API calls are from the OS 8 days and the technical
note on them hasn't been touched since 1999, so I'm guessing
they're deprecated or something. I saw some newer documents using
FPGetSrvrInfo() and FPLogin() and they look like what I need, but
the documentation contains no examples and there is no reference to
what framework or library they are contained in so I don't know how
to link them in or what their prototypes are. Any help would be
greatly appreciated, I'm down to using an applescript, yuck!
If you can call Carbon File Manager functions (in CoreServices/
CarbonCore Framework), you can use either PBVolumeMount (10.x+) or
FSMountServerVolumeSync (or FSMountServerVolumeAsync) (10.2+).
PBVolumeMount is old style and takes a parameter block; the old
"MoreFiles" sample code has a function to help you build the params.
FSMountServerVolume[As|S]ync takes a URL of the form "afp://[username
[:pwassword]]@host/volume" (for AFP-over-TCP) or "afp:/at/[username
[:pwassword]]@host[:zone]/volume" (AFP-over-AppleTalk). If those
should work for you, but you have trouble getting them to actually
work, feel free to ask me for help.
----------------------------------------
Philip D. Wasson
email@hidden
_______________________________________________
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
References: | |
| >AFP Shares (From: Mike Gargano <email@hidden>) |