Devicecleanup.exe • Full Version
SP_DEVINFO_DATA devInfoData; devInfoData.cbSize = sizeof(SP_DEVINFO_DATA); DWORD idx = 0; int removed = 0;
WCHAR instanceId[256]; if (CM_Get_Device_ID(devInst, instanceId, 256, 0) != CR_SUCCESS) continue; DeviceCleanup.exe
else if (arg == L"/force") g_force = true; SP_DEVINFO_DATA devInfoData; devInfoData
if (matches && IsNonPresentDevice(devInst)) std::wcout << L"Removing: " << instanceId << std::endl; if (RemoveDevice(devInst)) removed++; devInfoData.cbSize = sizeof(SP_DEVINFO_DATA)