Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <stdio.h>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. string getHWID() {
  8. HW_PROFILE_INFO hwProfileInfo;
  9. GetCurrentHwProfile(&hwProfileInfo);
  10. wstring hwidWString = hwProfileInfo.szHwProfileGuid;
  11. string hwid(hwidWString.begin(), hwidWString.end());
  12.  
  13. return hwid;
  14. }
  15.  
  16. void main()
  17. {
  18. string userID;
  19. userID = getHWID();
  20.  
  21. cout << userID;
  22. system("pause");
  23. cout << endl;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement