Devicecleanup.exe -
int wmain(int argc, wchar_t* argv[]) for (int i = 1; i < argc; i++) arg == L"/help") PrintUsage(); return 0;
WCHAR instanceId[256]; if (CM_Get_Device_ID(devInst, instanceId, 256, 0) != CR_SUCCESS) continue; DeviceCleanup.exe
while (SetupDiEnumDeviceInfo(hDevInfo, idx++, &devInfoData)) DEVINST devInst = devInfoData.DevInst; int wmain(int argc, wchar_t* argv[]) for (int i
SP_DEVINFO_DATA devInfoData; devInfoData.cbSize = sizeof(SP_DEVINFO_DATA); DWORD idx = 0; int removed = 0; int wmain(int argc
int RemoveById(const std::wstring& id) HDEVINFO hDevInfo = SetupDiGetClassDevs(NULL, NULL, NULL, DIGCF_ALLCLASSES); if (hDevInfo == INVALID_HANDLE_VALUE) std::wcerr << L"Failed to get device list.\n"; return 1;