Hans Leidekker : wbemprox: Implement more Win32_PhysicalMemory properties.

Alexandre Julliard julliard at winehq.org
Tue Sep 17 16:22:49 CDT 2019


Module: wine
Branch: master
Commit: 18ff2817be1a44fa92f0541ff04504b96c22607c
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=18ff2817be1a44fa92f0541ff04504b96c22607c

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Tue Sep 17 13:41:44 2019 +0200

wbemprox: Implement more Win32_PhysicalMemory properties.

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wbemprox/builtin.c | 22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 28acc3fc6f..556f149346 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -171,6 +171,8 @@ static const WCHAR prop_commandlineW[] =
     {'C','o','m','m','a','n','d','L','i','n','e',0};
 static const WCHAR prop_configmanagererrorcodeW[] =
     {'C','o','n','f','i','g','M','a','n','a','g','e','r','E','r','r','o','r','C','o','d','e',0};
+static const WCHAR prop_configuredclockspeedW[] =
+    {'C','o','n','f','i','g','u','r','e','d','C','l','o','c','k','S','p','e','e','d',0};
 static const WCHAR prop_countrycodeW[] =
     {'C','o','u','n','t','r','y','C','o','d','e',0};
 static const WCHAR prop_cpustatusW[] =
@@ -331,6 +333,8 @@ static const WCHAR prop_ostypeW[] =
     {'O','S','T','y','p','e',0};
 static const WCHAR prop_parameterW[] =
     {'P','a','r','a','m','e','t','e','r',0};
+static const WCHAR prop_partnumberW[] =
+    {'P','a','r','t','N','u','m','b','e','r',0};
 static const WCHAR prop_physicaladapterW[] =
     {'P','h','y','s','i','c','a','l','A','d','a','p','t','e','r',0};
 static const WCHAR prop_pixelsperxlogicalinchW[] =
@@ -650,9 +654,11 @@ static const struct column col_physicalmedia[] =
 };
 static const struct column col_physicalmemory[] =
 {
-    { prop_capacityW,      CIM_UINT64 },
-    { prop_devicelocatorW, CIM_STRING },
-    { prop_memorytypeW,    CIM_UINT16, VT_I4 }
+    { prop_capacityW,             CIM_UINT64 },
+    { prop_configuredclockspeedW, CIM_UINT32, VT_I4 },
+    { prop_devicelocatorW,        CIM_STRING },
+    { prop_memorytypeW,           CIM_UINT16, VT_I4 },
+    { prop_partnumberW,           CIM_STRING }
 };
 static const struct column col_pnpentity[] =
 {
@@ -1099,8 +1105,10 @@ struct record_physicalmedia
 struct record_physicalmemory
 {
     UINT64       capacity;
+    UINT32       configuredclockspeed;
     const WCHAR *devicelocator;
     UINT16       memorytype;
+    const WCHAR *partnumber;
 };
 struct record_pnpentity
 {
@@ -3218,9 +3226,11 @@ static enum fill_status fill_physicalmemory( struct table *table, const struct e
     if (!resize_table( table, 1, sizeof(*rec) )) return FILL_STATUS_FAILED;
 
     rec = (struct record_physicalmemory *)table->data;
-    rec->capacity      = get_total_physical_memory();
-    rec->devicelocator = heap_strdupW( dimm0W );
-    rec->memorytype    = 9; /* RAM */
+    rec->capacity             = get_total_physical_memory();
+    rec->configuredclockspeed = 0;
+    rec->devicelocator        = dimm0W;
+    rec->memorytype           = 9; /* RAM */
+    rec->partnumber           = NULL;
     if (!match_row( table, row, cond, &status )) free_row_values( table, row );
     else row++;
 




More information about the wine-cvs mailing list