Getting the Serial Number of a Harddisk using API call.
Getting the Serial Number of a Harddisk using API call.
API Declarations
Public Function GetSerial(str As String) As Long
Dim Buf$, Name$, Flags&, Length&
Dim Serial As Long
GetVolumeInformation str, Buf$, 255, Serial, Length, Flags, Name$, 255
GetSerial = Serial
End Function
Rate Getting the Serial Number of a Harddisk using API call.
(1(1 Vote))
label1.caption = GetSerial("C:\")
Getting the Serial Number of a Harddisk using API call. Comments
No comments yet — be the first to post one!
Post a Comment