Hey Martin....
Can you tell me what I am doing wrong here... I open your project vb file and I press the play button (F5)..
And I get a compile error - can't find project or library...
I am using Win XP and VB 6.0
The underlined line of code is highlighted blue when I get the error..
VB Code:
Public Function GetSerialNumber() As Long
Dim strVolumeBuffer As String
Dim strSysName As String
Dim lngSerialNumber As Long
Dim lngSysFlags As Long
Dim lngComponentLen As Long
Dim lngResult As Long
strVolumeBuffer$ = [U]String$[/U](256, 0)
strSysName$ = String$(256, 0)
lngResult = GetVolumeInformation("C:\", strVolumeBuffer$, 255, lngSerialNumber, _
lngComponentLen, lngSysFlags, strSysName$, 255)
GetSerialNumber = lngSerialNumber
End Function
Thank you for taking the time!
Stilekid007