View Full Version : Hard disk Serial no. and Model no.
naveen
Nov 29, 2004, 06:14 AM
Hi all
I am currently working in a project in QT For Macintosh system which deals with reading hardware details. Can anyone help me how to get the hardware details.
for example in case of harddisk, i want to get the harddisk details like, manufacturer name, number of sectors, serial number,Model No. Like this i want to get details of all storage devices.
is there any way of getting this. can anyone send a sample code of getting these details. is there any way in QT to get these.Where they are store in a system.
Plz tell me from where i have to read the information programatically about serial no. and model no. of hard disk.
Thanks and Regards
*
varmit
Nov 29, 2004, 08:12 AM
That stuff is written on the drives. Just have to read it. Otherwise, check with the manufacture, and they usually tell you all the information such as sectors and what not. And if you want the details of the Mac, read the sticker on the back of it. Apple prints what the computer originally came with on the back.
sgarringer
Nov 29, 2004, 09:08 AM
That stuff is written on the drives. Just have to read it. Otherwise, check with the manufacture, and they usually tell you all the information such as sectors and what not. And if you want the details of the Mac, read the sticker on the back of it. Apple prints what the computer originally came with on the back.
Bother to read his original message? Hes looking for code that will pull this into QT. Unless you want to write a program that reads a sticker, you didnt answer the original question.
AmigoMac
Nov 29, 2004, 09:38 AM
that should be available within a code, look at system profiler and it works, I don't think it is impossible but don'T have idea how to do that, sorry, I know I didn't answer your question but a bit of motivation doesn't bother ;)
Makosuke
Nov 29, 2004, 02:08 PM
Although it's entirely possible to read plenty of drive info in software, I've never heard of anybody doing anything that low-level in QT directly. So far as I know, QT doesn't allow much outside of interface and scripting--certainly none of the system calls and likely direct hardware access that would be required to read the HD's serial number.
I'd be quite surprised if this were possible without resorting to an external application--aside from completely breaking the cross-platform nature of QuickTime, that kind of access from a media handler would be a huge security risk.
naveen
Nov 30, 2004, 03:09 AM
hi all
I am working on QT Designer(c++ Gui programming kit).
I want to pic the hard disk serial no and model no and capacity using c++ programming from the macintosh system.
But i don't know where ,in which file the information about the hard disk details are written.
I am able to read the file in macintosh like /dev/disk0.
Plz give me valuable suggestions and location of file that contains the above details about the hard disk.
Thanks and Regards
jeremy.king
Nov 30, 2004, 09:16 AM
Perhaps you could start here and search for what you need
http://developer.apple.com/
naveen
Dec 2, 2004, 06:59 AM
hi all
Plz Sought out my problem.
If anybody have knowlege please help me.
Thanks and Regards
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.