[C++] [WINDOWS] - Getting HWID 12-18-2022, 01:04 AM
#1
This is a simple method to get HWID using <windows.h>.
Code:
#include <iostream>
#include <windows.h>
int main(int argc, char** argv)
{
// ~ initialize (HW_PROFILE_INFO) structure
HW_PROFILE_INFO _HW_PROFILE_INFO;
// ~ setting (HW_PROFILE_INFO) structure
if (GetCurrentHwProfile(&_HW_PROFILE_INFO) != FALSE)
{
// ~ printing (HW_PROFILE_INFO) structure
std::cout << "Hardware Guid: " << _HW_PROFILE_INFO.szHwProfileGuid << std::endl;
}
return EXIT_SUCCESS;
}
(This post was last modified: 12-18-2022, 02:02 AM by NukeZzZin.)