Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <stdio.h>
- #include <string>
- using namespace std;
- string getHWID() {
- HW_PROFILE_INFO hwProfileInfo;
- GetCurrentHwProfile(&hwProfileInfo);
- wstring hwidWString = hwProfileInfo.szHwProfileGuid;
- string hwid(hwidWString.begin(), hwidWString.end());
- return hwid;
- }
- void main()
- {
- string userID;
- userID = getHWID();
- cout << userID;
- system("pause");
- cout << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement