399{
403 BOOL SelectedInClass;
405
407
408 ClassDevInfo = hpd->ClassDevInfo;
409 LastClassDevInfo = ClassDevInfo + hpd->NumberOfGuids;
410
411 while (ClassDevInfo != LastClassDevInfo)
412 {
414 {
416 LastHwDevInfo = HwDevInfo + ClassDevInfo->
ItemCount;
417
418 SelectedInClass = (SelectedClassGuid !=
NULL &&
420 ClassDevInfo->
Guid));
421 while (HwDevInfo != LastHwDevInfo)
422 {
425
426
430 szBuffer,
431 sizeof(szBuffer) / sizeof(szBuffer[0])))
432 {
434 li.iItem = ItemCount;
435 if ((ItemCount == 0 && lpSelectDeviceId ==
NULL) ||
436 (SelectedInClass &&
439 lpSelectDeviceId)))
440 {
442 }
444 li.pszText = szBuffer;
447
450 if (iItem != -1)
451 {
452 ItemCount++;
453
454
456 szBuffer,
457 sizeof(szBuffer) / sizeof(szBuffer[0])))
458 {
462
465 }
466 }
467 }
468
469 HwDevInfo++;
470 }
471 }
472
473 ClassDevInfo++;
474 }
475
476
478}
BOOL GetDeviceTypeString(IN PSP_DEVINFO_DATA DeviceInfoData, OUT LPWSTR szBuffer, IN DWORD BufferSize)
BOOL GetDeviceDescriptionString(IN HDEVINFO DeviceInfoSet, IN PSP_DEVINFO_DATA DeviceInfoData, OUT LPWSTR szBuffer, IN DWORD BufferSize)
static VOID UpdateControlStates(IN PHARDWARE_PAGE_DATA hpd)
static BOOL DeviceIdMatch(IN HDEVINFO DeviceInfoSet, IN PSP_DEVINFO_DATA DeviceInfoData, IN LPCWSTR lpDeviceId)
static VOID BuildDevicesList(IN PHARDWARE_PAGE_DATA hpd)
#define ListView_InsertItem(hwnd, pitem)
#define ListView_SetItem(hwnd, pitem)
#define IsEqualGUID(rguid1, rguid2)