FAQ: How to get serial number of hard disk in my vb program?

If you are an VB Developer and looking for a solution to get serial number of hard disk in your VB applicaton, you can try our GetDiskSerial DLL. With a few function call in VB, it helps you read the Serial Number of Hard Disk in your VB projects easily and quickly.

1
2
3
4
5
6
7
8
9
10
Public Declare Sub SetLicenseKey Lib "GetDiskSerial.dll" (ByVal RegCode As String)
Public Declare Function GetSerialNumber Lib "GetDiskSerial.dll" (ByVal DriveIndex As Byte) As String
 
Private Sub Command1_Click()
     
    SetLicenseKey('Your-License_Key')
    Text1.Text = GetSerialNumber(0)
        
End Sub
                    

Free Trial GetDiskSerial DLL Now

See Also: