VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Getting the Serial Number of a Harddisk using API call.

by Rhian ASeniero (8 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 23rd April 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

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.




label1.caption = GetSerial("C:\")



Download this snippet    Add to My Saved Code

Getting the Serial Number of a Harddisk using API call. Comments

No comments have been posted about Getting the Serial Number of a Harddisk using API call.. Why not be the first to post a comment about Getting the Serial Number of a Harddisk using API call..

Post your comment

Subject:
Message:
0/1000 characters