Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hard Disk Serial Number in Win 98
Message
From
11/01/2006 10:09:21
 
 
To
11/01/2006 08:53:49
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 7
Miscellaneous
Thread ID:
01085545
Message ID:
01085625
Views:
12
I have used the following to determine the serial:
DECLARE INTEGER GetVolumeInformation IN WIN32API STRING @lpRootPathName, STRING @lpVolumeNameBuffer, ;
  INTEGER nVolumeNameSize, INTEGER @lpVolumeSerialNumber, INTEGER @lpMaximumComponentLength, ;
  INTEGER @lpFileSystemFlags, STRING @lpFileSystemNameBuffer, INTEGER nFileSystemNameSize
lcString          = ""
lcRoot            = "C:\"
lcVolumeName      = SPACE(256)
lnVolumeNameSize  = 256
lnVolumeSerial    = 0
lnMaxCompLength   = 256
lnFileSysFlag     = 0
lcFileSysNameBuf  = SPACE(256)
lnFileSysNameSize = 256
lnReturn = GetVolumeInformation(@lcRoot,@lcVolumeName,lnVolumeNameSize,@lnVolumeSerial, ;
				@lnMaxCompLength,@lnFileSysFlag,@lcFileSysNameBuf,lnFileSysNameSize)
IF lnVolumeSerial < 0
  lnVolumeSerial = 4294967296 + lnVolumeSerial
ENDIF
Not sure if this will work in Win98...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform