Author: ekohl Date: Sat Jan 16 18:07:41 2010 New Revision: 45108
URL: http://svn.reactos.org/svn/reactos?rev=45108&view=rev Log: Display CSConfigFlags.
Modified: trunk/reactos/dll/win32/devmgr/advprop.c
Modified: trunk/reactos/dll/win32/devmgr/advprop.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/devmgr/advprop.c?... ============================================================================== --- trunk/reactos/dll/win32/devmgr/advprop.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/devmgr/advprop.c [iso-8859-1] Sat Jan 16 18:07:41 2010 @@ -791,6 +791,7 @@ // SetListViewText(hwndListView, 0, dap->szTemp); }
+ static VOID DisplayDevNodeEnumerator(IN PDEVADVPROP_INFO dap, IN HWND hwndListView) @@ -825,6 +826,30 @@ }
+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 DisplayDeviceProperties(IN PDEVADVPROP_INFO dap, @@ -875,9 +900,6 @@ case 5: /* Enumerator */ DisplayDevNodeEnumerator(dap, hwndListView); -// DisplayDevicePropertyText(dap, -// hwndListView, -// SPDRP_ENUMERATOR_NAME); break;
case 6: /* Capabilities */ @@ -897,22 +919,50 @@ SPDRP_CONFIGFLAGS); break;
+ case 9: /* CSConfig Flags */ + DisplayCsFlags(dap, + hwndListView); + break; + #if 0 - case 9: /* CSConfig Flags */ + case 10: /* Ejection relation */ + break; + + case 11: /* Removal relations */ + break; + + case 12: /* Bus relation */ break; #endif
- case 13: /* Upper Filters */ + case 13: /* Device Upper Filters */ DisplayDevicePropertyText(dap, hwndListView, SPDRP_UPPERFILTERS); break;
- case 14: /* Lower Filters */ + case 14: /* Device Lower Filters */ DisplayDevicePropertyText(dap, hwndListView, SPDRP_LOWERFILTERS); 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: SetListViewText(hwndListView, 0, L"<Not implemented yet>");