User Tools

Site Tools


finding_20drive_20serial_20numbers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

finding_20drive_20serial_20numbers [2018/03/31 13:19]
127.0.0.1 external edit
finding_20drive_20serial_20numbers [2018/04/17 16:07] (current)
tbest3112 Added syntax highlighting
Line 2: Line 2:
  
 //by Richard Russell, October 2015//\\ \\  Disk drives (including internal and external hard drives, USB flash drives etc.) have two kinds of serial number. One is the **volume serial number** which is created when the drive is formatted, and can later be changed, and the other is the **hardware serial number** which is assigned by the manufacturer and cannot be changed (at least, not in a straightforward way). The volume serial number is easily discovered (e.g. using the [[https://​msdn.microsoft.com/​en-us/​library/​windows/​desktop/​aa364993.aspx|GetVolumeInformation]] API function) but finding the hardware serial number is more tricky.\\ \\  The program below lists the hardware serial numbers of each of the mounted drives in the system:\\ \\  //by Richard Russell, October 2015//\\ \\  Disk drives (including internal and external hard drives, USB flash drives etc.) have two kinds of serial number. One is the **volume serial number** which is created when the drive is formatted, and can later be changed, and the other is the **hardware serial number** which is assigned by the manufacturer and cannot be changed (at least, not in a straightforward way). The volume serial number is easily discovered (e.g. using the [[https://​msdn.microsoft.com/​en-us/​library/​windows/​desktop/​aa364993.aspx|GetVolumeInformation]] API function) but finding the hardware serial number is more tricky.\\ \\  The program below lists the hardware serial numbers of each of the mounted drives in the system:\\ \\ 
 +<code bb4w>
         INSTALL @lib$+"​COMLIB"​         INSTALL @lib$+"​COMLIB"​
         PROC_cominitlcid(1033)         PROC_cominitlcid(1033)
Line 47: Line 48:
         PROC_comexit         PROC_comexit
         ENDPROC         ENDPROC
 +</​code>​
finding_20drive_20serial_20numbers.txt ยท Last modified: 2018/04/17 16:07 by tbest3112