wbemprox: Implement Win32_OperatingSystem.Status.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2021-10-15 10:41:28 +02:00 committed by Alexandre Julliard
parent 9acf66b795
commit 4ae00bcc38
2 changed files with 4 additions and 0 deletions

View File

@ -251,6 +251,7 @@ static const struct column col_operatingsystem[] =
{ L"SerialNumber", CIM_STRING|COL_FLAG_DYNAMIC },
{ L"ServicePackMajorVersion", CIM_UINT16 },
{ L"ServicePackMinorVersion", CIM_UINT16 },
{ L"Status", CIM_STRING },
{ L"SuiteMask", CIM_UINT32 },
{ L"SystemDirectory", CIM_STRING|COL_FLAG_DYNAMIC },
{ L"SystemDrive", CIM_STRING|COL_FLAG_DYNAMIC },
@ -667,6 +668,7 @@ struct record_operatingsystem
const WCHAR *serialnumber;
UINT16 servicepackmajor;
UINT16 servicepackminor;
const WCHAR *status;
UINT32 suitemask;
const WCHAR *systemdirectory;
const WCHAR *systemdrive;
@ -3598,6 +3600,7 @@ static enum fill_status fill_operatingsystem( struct table *table, const struct
rec->serialnumber = get_osserialnumber();
rec->servicepackmajor = ver.wServicePackMajor;
rec->servicepackminor = ver.wServicePackMinor;
rec->status = L"OK";
rec->suitemask = 272; /* Single User + Terminal */
rec->systemdirectory = get_systemdirectory();
rec->systemdrive = get_systemdrive();

View File

@ -1424,6 +1424,7 @@ static void test_Win32_OperatingSystem( IWbemServices *services )
check_property( obj, L"Version", VT_BSTR, CIM_STRING );
check_property( obj, L"TotalVisibleMemorySize", VT_BSTR, CIM_UINT64 );
check_property( obj, L"TotalVirtualMemorySize", VT_BSTR, CIM_UINT64 );
check_property( obj, L"Status", VT_BSTR, CIM_STRING );
check_property( obj, L"SystemDrive", VT_BSTR, CIM_STRING );
IWbemClassObject_Release( obj );