Hans Leidekker : wbemprox: Implement Win32_OperatingSystem.Primary.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jun 22 07:44:59 CDT 2015


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

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Mon Jun 22 12:13:56 2015 +0200

wbemprox: Implement Win32_OperatingSystem.Primary.

---

 dlls/wbemprox/builtin.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 0c6f8a7..41a8e97 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -271,6 +271,8 @@ static const WCHAR prop_pnpdeviceidW[] =
     {'P','N','P','D','e','v','i','c','e','I','D',0};
 static const WCHAR prop_pprocessidW[] =
     {'P','a','r','e','n','t','P','r','o','c','e','s','s','I','D',0};
+static const WCHAR prop_primaryW[] =
+    {'P','r','i','m','a','r','y',0};
 static const WCHAR prop_processidW[] =
     {'P','r','o','c','e','s','s','I','D',0};
 static const WCHAR prop_processoridW[] =
@@ -480,6 +482,7 @@ static const struct column col_os[] =
     { prop_oslanguageW,             CIM_UINT32, VT_I4 },
     { prop_osproductsuiteW,         CIM_UINT32, VT_I4 },
     { prop_ostypeW,                 CIM_UINT16, VT_I4 },
+    { prop_primaryW,                CIM_BOOLEAN },
     { prop_serialnumberW,           CIM_STRING },
     { prop_servicepackmajorW,       CIM_UINT16, VT_I4 },
     { prop_servicepackminorW,       CIM_UINT16, VT_I4 },
@@ -861,6 +864,7 @@ struct record_operatingsystem
     UINT32       oslanguage;
     UINT32       osproductsuite;
     UINT16       ostype;
+    int          primary;
     const WCHAR *serialnumber;
     UINT16       servicepackmajor;
     UINT16       servicepackminor;
@@ -2491,6 +2495,7 @@ static enum fill_status fill_os( struct table *table, const struct expr *cond )
     rec->oslanguage             = GetSystemDefaultLangID();
     rec->osproductsuite         = 2461140; /* Windows XP Professional  */
     rec->ostype                 = 18;      /* WINNT */
+    rec->primary                = -1;
     rec->serialnumber           = os_serialnumberW;
     rec->servicepackmajor       = 3;
     rec->servicepackminor       = 0;




More information about the wine-cvs mailing list