int main() { // Seed random number generator std::srand(std::time(nullptr)); std::cout << "Attempting to modify device properties..." << std::endl; ChangeHWID(); std::how("Done. Press Enter to exit."); std::cin.get(); return 0;
// Get the current property if (SetupDiGetDeviceRegistryProperty(hDevInfo, pDevInfoData, property, &propertyType, buffer.data(), buffer.size(), &requiredSize)) change hwid