• 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: How to get volume information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get volume information


  • Subject: Re: How to get volume information
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 14 Feb 2011 10:43:21 -0600

On Feb 14, 2011, at 7:46 AM, Abhijeet Singh wrote:

> Hi,In my application 1. I want to check whether my application is running from CD (removable media) or from hard disk.I dont want to allow my user to run my application from hard disk. 2. Same application i developed in windows. I used to store the volume serial number of the CD that was first time used to run my application. How can i get Volume Serial Number of the CD here?(I found stat() of BSD. It returns several volume information parameters. Can i get volume serial number from stat()?)

Volume serial numbers, as such, are a Windows-specific concept.

Mac OS X supports the notion of a volume UUID, but not all file systems support it.  It should be supported for a CD or a hard disk, though.

There are a couple of APIs that can obtain that.  As mentioned, Disk Arbitration is one.  The getattrlist() function is another.

Regards,
Ken

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to get volume information (From: "Abhijeet Singh" <email@hidden>)

  • Prev by Date: Re: Blocking while a save panel sheet is showing
  • Next by Date: Re: Canceling NSInvocationOperation
  • Previous by thread: Re: How to get volume information
  • Next by thread: Using NSTerminateLater with a Status Item
  • Index(es):
    • Date
    • Thread