I'm trying to use 'FSMountServerVolumeSync' to mount a SMB
drive.
For example:
error = FSMountServerVolumeSync(urlSrcName,
0L,
(CFStringRef)userName,
(CFStringRef)password,
(FSVolumeRefNum
*)returnRefNum,
0L /* OptionBits, currently unused */
);
Where
urlSrcName is '
smb://fileserver/public'. The volume
actually mounts
and I can see it if I do a 'df' from the terminal window,
though it doesn't
appear in Finder. But FSMountServerVolumeSync
always returns a '-36' ioErr
and the returnRefNum is empty. Without
the returnRefNum, it's tough to find
name of the mountpoint so my app can
translate the paths to the files and I
can't unmount using
'FSEjectVolumeSync'. This happens on both MacOSX 10.4
and 10.5.