mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 12:13:10 +00:00
Display CSConfigFlags.
svn path=/trunk/; revision=45108
This commit is contained in:
parent
b060fb3ebf
commit
b58a692add
1 changed files with 56 additions and 6 deletions
|
@ -791,6 +791,7 @@ DisplayDevNodeFlags(IN PDEVADVPROP_INFO dap,
|
||||||
// SetListViewText(hwndListView, 0, dap->szTemp);
|
// SetListViewText(hwndListView, 0, dap->szTemp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
DisplayDevNodeEnumerator(IN PDEVADVPROP_INFO dap,
|
DisplayDevNodeEnumerator(IN PDEVADVPROP_INFO dap,
|
||||||
IN HWND hwndListView)
|
IN HWND hwndListView)
|
||||||
|
@ -825,6 +826,30 @@ DisplayDevNodeEnumerator(IN PDEVADVPROP_INFO dap,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static VOID
|
||||||
|
DisplayCsFlags(IN PDEVADVPROP_INFO dap,
|
||||||
|
IN HWND hwndListView)
|
||||||
|
{
|
||||||
|
DWORD dwValue = 0;
|
||||||
|
INT index;
|
||||||
|
|
||||||
|
CM_Get_HW_Prof_Flags_Ex(dap->szDevName,
|
||||||
|
0, /* current hardware profile */
|
||||||
|
&dwValue,
|
||||||
|
0,
|
||||||
|
dap->hMachine);
|
||||||
|
|
||||||
|
index = 0;
|
||||||
|
if (dwValue & CSCONFIGFLAG_DISABLED)
|
||||||
|
SetListViewText(hwndListView, index++, L"CSCONFIGFLAG_DISABLED");
|
||||||
|
|
||||||
|
if (dwValue & CSCONFIGFLAG_DO_NOT_CREATE)
|
||||||
|
SetListViewText(hwndListView, index++, L"CSCONFIGFLAG_DO_NOT_CREATE");
|
||||||
|
|
||||||
|
if (dwValue & CSCONFIGFLAG_DO_NOT_START)
|
||||||
|
SetListViewText(hwndListView, index++, L"CSCONFIGFLAG_DO_NOT_START");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static VOID
|
static VOID
|
||||||
DisplayDeviceProperties(IN PDEVADVPROP_INFO dap,
|
DisplayDeviceProperties(IN PDEVADVPROP_INFO dap,
|
||||||
|
@ -875,9 +900,6 @@ DisplayDeviceProperties(IN PDEVADVPROP_INFO dap,
|
||||||
case 5: /* Enumerator */
|
case 5: /* Enumerator */
|
||||||
DisplayDevNodeEnumerator(dap,
|
DisplayDevNodeEnumerator(dap,
|
||||||
hwndListView);
|
hwndListView);
|
||||||
// DisplayDevicePropertyText(dap,
|
|
||||||
// hwndListView,
|
|
||||||
// SPDRP_ENUMERATOR_NAME);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 6: /* Capabilities */
|
case 6: /* Capabilities */
|
||||||
|
@ -897,23 +919,51 @@ DisplayDeviceProperties(IN PDEVADVPROP_INFO dap,
|
||||||
SPDRP_CONFIGFLAGS);
|
SPDRP_CONFIGFLAGS);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#if 0
|
|
||||||
case 9: /* CSConfig Flags */
|
case 9: /* CSConfig Flags */
|
||||||
|
DisplayCsFlags(dap,
|
||||||
|
hwndListView);
|
||||||
|
break;
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
case 10: /* Ejection relation */
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 11: /* Removal relations */
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 12: /* Bus relation */
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case 13: /* Upper Filters */
|
case 13: /* Device Upper Filters */
|
||||||
DisplayDevicePropertyText(dap,
|
DisplayDevicePropertyText(dap,
|
||||||
hwndListView,
|
hwndListView,
|
||||||
SPDRP_UPPERFILTERS);
|
SPDRP_UPPERFILTERS);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 14: /* Lower Filters */
|
case 14: /* Device Lower Filters */
|
||||||
DisplayDevicePropertyText(dap,
|
DisplayDevicePropertyText(dap,
|
||||||
hwndListView,
|
hwndListView,
|
||||||
SPDRP_LOWERFILTERS);
|
SPDRP_LOWERFILTERS);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
case 15: /* Class Upper Filters */
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 16: /* Class Lower Filters */
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 17: /* Class Installer */
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 18: /* Class Coinstaller */
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 19: /* Device Coinstaller */
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
SetListViewText(hwndListView, 0, L"<Not implemented yet>");
|
SetListViewText(hwndListView, 0, L"<Not implemented yet>");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue