Hans Leidekker : wbemprox: Implement Win32_Processor.UniqueId.

Alexandre Julliard julliard at winehq.org
Thu Oct 4 13:38:38 CDT 2012


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Thu Oct  4 15:37:57 2012 +0200

wbemprox: Implement Win32_Processor.UniqueId.

---

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

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 7c7cf24..13c96b8 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -182,6 +182,8 @@ static const WCHAR prop_totalphysicalmemoryW[] =
     {'T','o','t','a','l','P','h','y','s','i','c','a','l','M','e','m','o','r','y',0};
 static const WCHAR prop_typeW[] =
     {'T','y','p','e',0};
+static const WCHAR prop_uniqueidW[] =
+    {'U','n','i','q','u','e','I','d',0};
 static const WCHAR prop_versionW[] =
     {'V','e','r','s','i','o','n',0};
 
@@ -290,7 +292,8 @@ static const struct column col_processor[] =
     { prop_maxclockspeedW,        CIM_UINT32, VT_I4 },
     { prop_nameW,                 CIM_STRING|COL_FLAG_DYNAMIC },
     { prop_numlogicalprocessorsW, CIM_UINT32, VT_I4 },
-    { prop_processoridW,          CIM_STRING|COL_FLAG_DYNAMIC }
+    { prop_processoridW,          CIM_STRING|COL_FLAG_DYNAMIC },
+    { prop_uniqueidW,             CIM_STRING }
 };
 static const struct column col_service[] =
 {
@@ -462,6 +465,7 @@ struct record_processor
     const WCHAR *name;
     UINT32       num_logical_processors;
     const WCHAR *processor_id;
+    const WCHAR *unique_id;
 };
 struct record_service
 {
@@ -898,6 +902,7 @@ static void fill_processor( struct table *table )
         rec->name                   = heap_strdupW( name );
         rec->num_logical_processors = num_logical_processors;
         rec->processor_id           = heap_strdupW( processor_id );
+        rec->unique_id              = NULL;
         offset += sizeof(*rec);
     }
 




More information about the wine-cvs mailing list