wbemprox: Implement Win32_OperatingSystem.Primary.

This commit is contained in:
Hans Leidekker 2015-06-22 12:13:56 +02:00 committed by Alexandre Julliard
parent 13490899f1
commit bd647dc013
1 changed files with 5 additions and 0 deletions

View File

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