sir i want to read the hard disk serail number using c, c++
can any one help me to read the serial number of hard disk
or if any one have source code, kindly mail it to me
regards
Printable View
sir i want to read the hard disk serail number using c, c++
can any one help me to read the serial number of hard disk
or if any one have source code, kindly mail it to me
regards
The C language doesn't know what a hard disk is. Check the documentation specific to your platform/operating system, or post the question to a forum dedicated to the operating system/platform in question.
As a side note, as far as I know there is no way to read a hard disk serial number. Perhaps you are referring to the Windows volume serial number, which is quite easily changeable, since it's just data that's part of the partition?
State your operating system and compiler.
Also, I'm pretty sure a board search will show something...
a) Please don't cross post.
b) You can use GetVolumeInformation to obtain the serial number assigned to your volume when it was formatted by your OS, or you can use WMI and the Win32_PhysicalMedia class to get the manufacturers serial ID.
Use google to find some examples.
Also, check this thread.