Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API for ethernet card serial number
Message
De
08/01/2006 12:32:35
Reza Meamar
Homa Programming Group
Shiraz, Iran
 
 
À
15/12/2005 11:39:41
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01078300
Message ID:
01084522
Vues:
14
>>Hi,
>> Can anyone give me some idea or API name to get the serial number of the ethernet card installed on a CPU. How can we call a function of an API? I am working on vfp 7.
>> Thanks in advance,
>>
>>Regards/ Somesh
>
>One of the ways:
>
>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)
>lcOldError = On('error')
>On Error lnResult = CoCreateGuid(@pGUID)
>lnResult = UuidCreateSequential(@pGUID)
>On Error &lcOldError
>lcMacAddress = Substr( Iif( lnResult = 0 And ;
>	StringFromGUID2(pGUID,@rGUID,40) # 0, ;
>	StrConv(Left(rGUID,76),6), "" ), 26,12)
>
>? m.lcMacAddress
>
Cetin

Dear Cetin,
I read that "a GUID, or globally unique identifier, is a number that Microsoft guarantees is unique throughout the entire world".
I want to know can i use from this unique identifier for making a software LOCK?
Is it possible that this value changed if user change it's Hardware or it's OS ( such as upgrade WIN98 to WIN XP? ) or any change in it's computer?
This GUID generate based on what? hardware? or anything
Thanks for your guide
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform