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

Next revision
Previous revision
finding_20drive_20serial_20numbers [2018/03/31 13:19] – external edit 127.0.0.1finding_20drive_20serial_20numbers [2024/01/05 00:22] (current) – external edit 127.0.0.1
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.1522502360.txt.gz · Last modified: 2024/01/05 00:17 (external edit)