HKEY key;
unsigned long *lType=(unsigned long *)malloc(sizeof(unsigned long));
unsigned char *chemin=(unsigned char *)malloc(512*sizeof(unsigned char));
unsigned long taille=513*sizeof(unsigned char);
*lType=REG_SZ;//j'avais oublier cette ligne
if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,"hardware\\DESCRIPTION\\System\\CentralProcessor\\0",0,KEY_READ,&key)==ERROR_SUCCESS)
RegQueryValueEx(key,"VendorIdentifier",0,lType,chemin,&taille);
unsigned char *chemin contient maintenant ta valeur.
[edit]--Message édité par Roswell_--[/edit]
---------------
http://www.cheata.net le site qui vous donne la banane!