char h1[260]; unsigned long s1,s2,s3,s4; __asm { mov eax,00h xor edx,edx cpuid mov s1, edx mov s2, eax } __asm { mov eax,01h xor ecx,ecx xor edx,edx cpuid mov s3, edx mov s4, ecx } sprintf(h1,"%X%X%X%X",s1,s2,s3,s4); MessageBox(h1);
char h1[260]; unsigned long s1,s2,s3,s4; __asm { mov eax,00h xor edx,edx cpuid mov s1, edx mov s2, eax } __asm { mov eax,01h xor ecx,ecx xor edx,edx cpuid mov s3, edx mov s4, ecx } sprintf(h1,"%X%X%X%X",s1,s2,s3,s4); MessageBox(h1);