views:

261

answers:

1

Hi, everybody.

I`m programming in obj-c using cocoa, and I would like to discover the HDD volume id programmatically.I know that I will probably need to do this in pure C and than use it in my app, but even in the C language I could not find any answers.

Please help.Thanks!

A: 

You probably need to look in the IORegistry. Start with IOKit Fundamentals and Accessing Hardware from Applications. You can also find some low level information in the Device File Access Guide for Storage Devices.

calmh