Hans Leidekker : wbemprox: Implement Win32_Processor.Family.

Alexandre Julliard julliard at winehq.org
Thu May 2 14:07:02 CDT 2013


Module: wine
Branch: master
Commit: fb81961d8b300189e6f3b4bd125998d61e35a3ce
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fb81961d8b300189e6f3b4bd125998d61e35a3ce

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu May  2 12:02:34 2013 +0200

wbemprox: Implement Win32_Processor.Family.

---

 dlls/wbemprox/builtin.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 2106f67..3266bd2 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -123,6 +123,8 @@ static const WCHAR prop_driveW[] =
     {'D','r','i','v','e',0};
 static const WCHAR prop_drivetypeW[] =
     {'D','r','i','v','e','T','y','p','e',0};
+static const WCHAR prop_familyW[] =
+    {'F','a','m','i','l','y',0};
 static const WCHAR prop_filesystemW[] =
     {'F','i','l','e','S','y','s','t','e','m',0};
 static const WCHAR prop_flavorW[] =
@@ -334,6 +336,7 @@ static const struct column col_processor[] =
 {
     { prop_cpustatusW,            CIM_UINT16 },
     { prop_deviceidW,             CIM_STRING|COL_FLAG_DYNAMIC|COL_FLAG_KEY },
+    { prop_familyW,               CIM_UINT16, VT_I4 },
     { prop_manufacturerW,         CIM_STRING|COL_FLAG_DYNAMIC },
     { prop_maxclockspeedW,        CIM_UINT32, VT_I4 },
     { prop_nameW,                 CIM_STRING|COL_FLAG_DYNAMIC },
@@ -563,6 +566,7 @@ struct record_processor
 {
     UINT16       cpu_status;
     const WCHAR *device_id;
+    UINT16       family;
     const WCHAR *manufacturer;
     UINT32       maxclockspeed;
     const WCHAR *name;
@@ -1143,6 +1147,7 @@ static void fill_processor( struct table *table )
         rec->cpu_status             = 1; /* CPU Enabled */
         sprintfW( device_id, fmtW, i );
         rec->device_id              = heap_strdupW( device_id );
+        rec->family                 = 2; /* Unknown */
         rec->manufacturer           = heap_strdupW( manufacturer );
         rec->maxclockspeed          = maxclockspeed;
         rec->name                   = heap_strdupW( name );




More information about the wine-cvs mailing list