Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get DOS Serial No. in VFP using WinAPI
Message
From
30/07/1999 04:03:28
 
 
To
30/07/1999 02:58:52
Upendra Nayak
Cadsys Technologies
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00248061
Message ID:
00248069
Views:
24
declare integer GetVolumeInformation in win32api ;
string rootdir, string @volumename, integer vnamesize,;
string @volserial, integer a, integer b, string c, integer d
CLEAR
buf1 = NULL
volserial = replicate(chr(0), 4)
a = 0
b = 0
c = ""
d = 0
r = GetVolumeInformation(buf1,@volumename,vnamesize,;
@volserial,a,b,c,d)

? "Volserial: "
v12 = ctobin( allt(volserial) )
? v12
t = tran(ctobin(allt(volserial) ),"@0")
t = strt(t,"0x","")
? t
? ""
?? substr(t,7,2)
?? substr(t,5,2)+"-"
?? substr(t,3,2)
?? substr(t,1,2)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform