https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6c4b4a107bb40b09749e6…
commit 6c4b4a107bb40b09749e6c4abf9232032eaf4001
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun Apr 4 11:44:38 2021 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun Apr 4 11:44:38 2021 +0200
[DEVMGR] Display hexadecimal values of Capabilities, ConfigFlags, DevnodeFlags and
CsFlags
---
dll/win32/devmgr/properties/advprop.cpp | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/dll/win32/devmgr/properties/advprop.cpp
b/dll/win32/devmgr/properties/advprop.cpp
index 37c7d7ce4d2..bfbffff6853 100644
--- a/dll/win32/devmgr/properties/advprop.cpp
+++ b/dll/win32/devmgr/properties/advprop.cpp
@@ -952,6 +952,8 @@ DisplayDevicePropertyText(IN PDEVADVPROP_INFO dap,
{
case SPDRP_CAPABILITIES:
index = 0;
+ swprintf(dap->szTemp, L"%08lx", dwValue);
+ SetListViewText(hwndListView, index++, dap->szTemp);
if (dwValue & CM_DEVCAP_LOCKSUPPORTED)
SetListViewText(hwndListView, index++,
L"CM_DEVCAP_LOCKSUPPORTED");
if (dwValue & CM_DEVCAP_EJECTSUPPORTED)
@@ -976,6 +978,8 @@ DisplayDevicePropertyText(IN PDEVADVPROP_INFO dap,
case SPDRP_CONFIGFLAGS:
index = 0;
+ swprintf(dap->szTemp, L"%08lx", dwValue);
+ SetListViewText(hwndListView, index++, dap->szTemp);
if (dwValue & CONFIGFLAG_DISABLED)
SetListViewText(hwndListView, index++,
L"CONFIGFLAG_DISABLED");
if (dwValue & CONFIGFLAG_REMOVED)
@@ -1035,6 +1039,8 @@ DisplayDevNodeFlags(IN PDEVADVPROP_INFO dap,
dap->hMachine);
index = 0;
+ swprintf(dap->szTemp, L"%08lx", dwStatus);
+ SetListViewText(hwndListView, index++, dap->szTemp);
if (dwStatus & DN_ROOT_ENUMERATED)
SetListViewText(hwndListView, index++, L"DN_ROOT_ENUMERATED");
if (dwStatus & DN_DRIVER_LOADED)
@@ -1101,9 +1107,6 @@ DisplayDevNodeFlags(IN PDEVADVPROP_INFO dap,
SetListViewText(hwndListView, index++, L"DN_NO_SHOW_IN_DM");
if (dwStatus & DN_BOOT_LOG_PROB)
SetListViewText(hwndListView, index++, L"DN_BOOT_LOG_PROB");
-
-// swprintf(dap->szTemp, L"0x%08x", dwStatus);
-// SetListViewText(hwndListView, 0, dap->szTemp);
}
@@ -1152,6 +1155,9 @@ DisplayCsFlags(IN PDEVADVPROP_INFO dap,
dap->hMachine);
index = 0;
+ swprintf(dap->szTemp, L"%08lx", dwValue);
+ SetListViewText(hwndListView, index++, dap->szTemp);
+
if (dwValue & CSCONFIGFLAG_DISABLED)
SetListViewText(hwndListView, index++, L"CSCONFIGFLAG_DISABLED");