Featured Content Slider

Home » » Lấy Hardware ID bằng C

Lấy Hardware ID bằng C

Vo Uu | 04:27 | 0 nhận xét
#define _WIN32_WINNT 0x0400

#include <windows.h>
#include <stdio.h>
#ifdef UNICODE
 #define GetCurrentHwProfile GetCurrentHwProfileW
#else
 #define GetCurrentHwProfile GetCurrentHwProfileA
#endif
int main()
{
HW_PROFILE_INFO hwProfileInfo;

if(GetCurrentHwProfile(&hwProfileInfo) != NULL){
printf("Hardware GUID: %s\n", hwProfileInfo.szHwProfileGuid);
printf("Hardware Profile: %s\n", hwProfileInfo.szHwProfileName);
}else{
return 0;
}

getchar();
return 0;
}

Share this article :

0 nhận xét:

Đăng nhận xét

Recent Post

Test Footer 1

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. The UG - All Rights Reserved
Template Modify by Creating Website
Proudly powered by Blogger