Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine Board/PC Serial #
Message
De
07/05/2003 03:05:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00785597
Message ID:
00785682
Vues:
14
>I need the API call used to determine the board serial #.
>
>Thanks

None (I mean a working one - some work on some OS\Board combination but not all mainboards and\or OS).
The only unique thing I can get is netcard address :
Local pGUID,rGUID,lpVersionInfo
Declare integer CoCreateGuid in 'OLE32.dll' string @pguid
Declare integer StringFromGUID2 in 'OLE32.dll' ;
  string rguid, string @lpsz, integer cchMax
declare short GetVersionEx in win32API ;
  string @ lpVersionInfo 

lpVersionInfo = chr(128+5*4)+replicate(chr(0),128+5*4-1)
GetVersionEx(@lpVersionInfo)

pGUID=replicate(chr(0),16)
rGUID=replicate(chr(0),80)

llWinMe2K = ASC(substr(lpVersionInfo, 5))>4 ;
	or ( ASC(substr(lpVersionInfo, 5)) = 4 ;
	and ASC(substr(lpVersionInfo, 9)) = 90 ) && 2000/XP or later, winMe
If llWinMe2K
  Declare integer UuidCreateSequential in 'RPCRT4.dll'  string @ Uuid
ENDIF

return substr( iif( ;
	IIF(llWinMe2K, ;
	UuidCreateSequential(@pGUID), CoCreateGuid(@pGUID)) = 0 ;
	and StringFromGUID2(pGUID,@rGUID,40) # 0, ;
    StrConv(left(rGUID,76),6), "" ), 26,12)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform