Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I NEED Hard drive serial Number to secure my aplication
Message
From
31/08/2006 09:40:04
 
 
To
31/08/2006 06:44:28
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01150087
Message ID:
01150115
Views:
21
Try:
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          = 0
lnReturn = GetVolumeInformation(@lcRoot,@lcVolumeName,lnVolumeNameSize,@lnVolumeSerial, ;
		@lnMaxCompLength,@lnFileSysFlag,@lcFileSysNameBuf,lnFileSysNameSize)
IF lnVolumeSerial < 0
	lnVolumeSerial = 4294967296 + lnVolumeSerial
ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform