• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing SMB-share with a fixed path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Accessing SMB-share with a fixed path (From: Alexey Proskuryakov <email@hidden>)

  • Prev by Date: Re: Accessing SMB-share with a fixed path
  • Next by Date: Re: Sockets slow on Macintosh
  • Previous by thread: Re: Accessing SMB-share with a fixed path
  • Next by thread: Connect Fails , Port is not open
  • Index(es):
    • Date
    • Thread