Re: Accessing SMB-share with a fixed path
Re: Accessing SMB-share with a fixed path
- Subject: Re: Accessing SMB-share with a fixed path
- From: Magnus Strand <email@hidden>
- Date: Thu, 07 Apr 2005 14:37:49 +0200
Alexey Proskuryakov wrote:
On 07.04.2005 12:32, "Magnus Strand" <email@hidden> wrote:
How can I configure my program with a path that always finds the mounted
SMB-share?
You can just store the share name, and then use FSGetVolumeInfo() to find
a mounted volume. For an example, see CFURL sources (namely,
__CFFSRefForVolumeName() function).
Why you're limiting yourself to SMB shares, by the way?
Good point!, I am testing eMac to PC, but our customer may have
a different configuration, I will try to make it a general solution.
Calling __CFFSRefForVolumeName() to get an FSRef works fine.
I will now try to call FSRefMakePath() to make it into a path.
then I will append a subpath and call
FSPathMakeRef, FSGetCatalogInfo, FSpGetDirectoryID like before.
Thanks!
--
*Magnus Strand*
_______________________________________________
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