mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[devmgr]
- Display the 'Enumerator' property. svn path=/trunk/; revision=44921
This commit is contained in:
@@ -667,11 +667,11 @@ DWORD PNP_GetDeviceRegProp(
|
||||
case CM_DRP_BUSNUMBER:
|
||||
PlugPlayData.Property = DevicePropertyBusNumber;
|
||||
break;
|
||||
#endif
|
||||
|
||||
case CM_DRP_ENUMERATOR_NAME:
|
||||
PlugPlayData.Property = DevicePropertyEnumeratorName;
|
||||
PlugPlayData.Property = 15; //DevicePropertyEnumeratorName;
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
return CR_INVALID_PROPERTY;
|
||||
|
||||
@@ -791,6 +791,39 @@ DisplayDevNodeFlags(IN PDEVADVPROP_INFO dap,
|
||||
// SetListViewText(hwndListView, 0, dap->szTemp);
|
||||
}
|
||||
|
||||
static VOID
|
||||
DisplayDevNodeEnumerator(IN PDEVADVPROP_INFO dap,
|
||||
IN HWND hwndListView)
|
||||
{
|
||||
HDEVINFO DeviceInfoSet;
|
||||
PSP_DEVINFO_DATA DeviceInfoData;
|
||||
|
||||
DWORD dwType = 0;
|
||||
WCHAR szBuffer[256];
|
||||
DWORD dwSize = 256 * sizeof(WCHAR);
|
||||
|
||||
if (dap->CurrentDeviceInfoSet != INVALID_HANDLE_VALUE)
|
||||
{
|
||||
DeviceInfoSet = dap->CurrentDeviceInfoSet;
|
||||
DeviceInfoData = &dap->CurrentDeviceInfoData;
|
||||
}
|
||||
else
|
||||
{
|
||||
DeviceInfoSet = dap->DeviceInfoSet;
|
||||
DeviceInfoData = &dap->DeviceInfoData;
|
||||
}
|
||||
|
||||
CM_Get_DevNode_Registry_Property_ExW(DeviceInfoData->DevInst,
|
||||
CM_DRP_ENUMERATOR_NAME,
|
||||
&dwType,
|
||||
&szBuffer,
|
||||
&dwSize,
|
||||
0,
|
||||
dap->hMachine);
|
||||
|
||||
SetListViewText(hwndListView, 0, szBuffer);
|
||||
}
|
||||
|
||||
|
||||
|
||||
static VOID
|
||||
@@ -840,9 +873,11 @@ DisplayDeviceProperties(IN PDEVADVPROP_INFO dap,
|
||||
break;
|
||||
|
||||
case 5: /* Enumerator */
|
||||
DisplayDevicePropertyText(dap,
|
||||
hwndListView,
|
||||
SPDRP_ENUMERATOR_NAME);
|
||||
DisplayDevNodeEnumerator(dap,
|
||||
hwndListView);
|
||||
// DisplayDevicePropertyText(dap,
|
||||
// hwndListView,
|
||||
// SPDRP_ENUMERATOR_NAME);
|
||||
break;
|
||||
|
||||
case 6: /* Capabilities */
|
||||
|
||||
Reference in New Issue
Block a user