General information
Category:
Coding, syntax & commands
Yes... Is True... ;)
.... And afford add uno more metod, for get MAC Address
PROCEDURE GetMACAddress
Local pGUID,rGUID,lcOldError, lnResult
Declare integer CoCreateGuid in 'OLE32.dll' string @pguid
Declare integer StringFromGUID2 in 'OLE32.dll' ;
string rguid, string @lpsz, integer cchMax
Declare integer UuidCreateSequential in 'RPCRT4.dll' string @ Uuid
pGUID = replicate(chr(0),16)
rGUID = replicate(chr(0),80)
lnResult = CoCreateGuid(@pGUID)
lnResult = UuidCreateSequential(@pGUID)
return substr( iif( lnResult = 0 and ;
StringFromGUID2(pGUID,@rGUID,40) # 0, StrConv(left(rGUID,76),6), "" ), 26,12)
ENDPROC
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only