Lines Matching refs:hDevInfo
422 static BOOL vboxNetCfgWinRemoveAllNetDevicesOfIdCallback(HDEVINFO hDevInfo, PSP_DEVINFO_DATA pDev, PVOID pContext)
430 if (SetupDiSetClassInstallParams(hDevInfo,pDev,
433 if (SetupDiSetSelectedDevice(hDevInfo, pDev))
436 HKEY hKey = SetupDiOpenDevRegKey(hDevInfo,
463 if (SetupDiGetDeviceRegistryPropertyW(hDevInfo, pDev,
496 if (SetupDiCallClassInstaller(DIF_REMOVE, hDevInfo, pDev))
502 if (SetupDiGetDeviceInstallParams(hDevInfo, pDev, &devParams))
536 static BOOL vboxNetCfgWinPropChangeAllNetDevicesOfIdCallback(HDEVINFO hDevInfo, PSP_DEVINFO_DATA pDev, PVOID pContext)
562 if (SetupDiSetClassInstallParams(hDevInfo, pDev, &PcParams.ClassInstallHeader, sizeof(PcParams)))
564 if (SetupDiSetSelectedDevice(hDevInfo, pDev))
566 if (SetupDiCallClassInstaller(DIF_PROPERTYCHANGE, hDevInfo, pDev))
570 if (SetupDiGetDeviceInstallParams(hDevInfo,pDev,&devParams))
596 typedef BOOL (*VBOXNETCFGWIN_NETENUM_CALLBACK) (HDEVINFO hDevInfo, PSP_DEVINFO_DATA pDev, PVOID pContext);
603 HDEVINFO hDevInfo = SetupDiGetClassDevsExW(&GUID_DEVCLASS_NET,
610 if (hDevInfo != INVALID_HANDLE_VALUE)
625 if (!SetupDiEnumDeviceInfo(hDevInfo, dwDevId, &Dev))
642 if (!SetupDiGetDeviceRegistryPropertyW(hDevInfo, &Dev,
667 if (!SetupDiGetDeviceRegistryPropertyW(hDevInfo,&Dev,
693 if (!callback(hDevInfo, &Dev, pContext))
706 SetupDiDestroyDeviceInfoList(hDevInfo);