how to get volume information

"Abhijeet Singh" <[email protected]> Mon, 14 Feb 2011 19:15:57 +0530
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
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()?)Thanks & RegardsAbhijeetDear macosxdev ! Get Yourself a cool, short @in.com Email ID now!