PDA

View Full Version : how to get hard disk serial number



rmagro
8th January 2008, 13:40
Hi Guys,
is there any class in QT with which i can get the HARD DISK Serial number?
If not , can anybody suggest me any other way to get this nuber ?

Thanks a lot,

Roberto

wysota
8th January 2008, 14:54
No, there is not. Use a platform dependent API. For Unix take a look at hdparm sources. There is probably some ioctl() that returns the data. The data is probably accesible through /proc or /sys (in case of Linux) too.

rmagro
8th January 2008, 15:35
What about windows platform ..something you can easily suggest?
Thank you once again

wysota
8th January 2008, 16:08
I can only advise to search MSDN.