Lines Matching defs:hDevInfo

51 void closeAndDestroy(HDEVINFO hDevInfo, HINF hInf)
53 SetupDiDestroyDriverInfoList(hDevInfo, NULL, SPDIT_CLASSDRIVER);
54 SetupDiDestroyDeviceInfoList(hDevInfo);
68 HDEVINFO hDevInfo;
92 hDevInfo = SetupDiCreateDeviceInfoList((LPGUID) &GUID_DEVCLASS_DISPLAY,
95 if (hDevInfo == INVALID_HANDLE_VALUE)
101 rc=SetupDiGetDeviceInstallParams(hDevInfo,
119 rc=SetupDiSetDeviceInstallParams(hDevInfo,
126 if (!SetupDiBuildDriverInfoList(hDevInfo, NULL, SPDIT_CLASSDRIVER))
128 SetupDiDestroyDeviceInfoList(hDevInfo);
135 if(FALSE==SetupDiEnumDriverInfo(hDevInfo, NULL, SPDIT_CLASSDRIVER,
137 SetupDiDestroyDeviceInfoList(hDevInfo);
143 if (!(!SetupDiGetDriverInfoDetail(hDevInfo,
151 SetupDiDestroyDriverInfoList(hDevInfo, NULL, SPDIT_CLASSDRIVER);
152 SetupDiDestroyDeviceInfoList(hDevInfo);
161 SetupDiDestroyDriverInfoList(hDevInfo, NULL, SPDIT_CLASSDRIVER);
162 SetupDiDestroyDeviceInfoList(hDevInfo);
173 closeAndDestroy(hDevInfo, hInf);
189 if (SetupDiOpenDeviceInfo(hDevInfo, deviceRegStr, NULL, 0, &deviceInfoData) //Check for existing
190 ||(SetupDiCreateDeviceInfo(hDevInfo, deviceRegStr, //Create new
196 SetupDiRegisterDeviceInfo(hDevInfo,
208 SetupDiGetDeviceInstallParams(hDevInfo,
221 SetupDiSetDeviceInstallParams(hDevInfo,
226 if(!SetupDiBuildDriverInfoList(hDevInfo,
230 closeAndDestroy(hDevInfo, hInf);
235 if (!SetupDiEnumDriverInfo(hDevInfo,
241 closeAndDestroy(hDevInfo, hInf);
245 if(!SetupDiSetSelectedDriver(hDevInfo,
249 closeAndDestroy(hDevInfo, hInf);
253 if(!SetupDiInstallDevice(hDevInfo,
256 closeAndDestroy(hDevInfo, hInf);
262 if (SetupDiGetDeviceRegistryProperty(hDevInfo,
271 SetupDiSetDeviceRegistryProperty(hDevInfo,
320 closeAndDestroy(hDevInfo, hInf);
345 closeAndDestroy(hDevInfo, hInf);