Commit 77fc1cd0 authored by Louis Lenders's avatar Louis Lenders Committed by Alexandre Julliard

wbemprox: Add BootDevice property to Win32_Operatingsystem.

parent b901f9ca
...@@ -228,6 +228,7 @@ static const struct column col_networkadapterconfig[] = ...@@ -228,6 +228,7 @@ static const struct column col_networkadapterconfig[] =
}; };
static const struct column col_operatingsystem[] = static const struct column col_operatingsystem[] =
{ {
{ L"BootDevice", CIM_STRING },
{ L"BuildNumber", CIM_STRING|COL_FLAG_DYNAMIC }, { L"BuildNumber", CIM_STRING|COL_FLAG_DYNAMIC },
{ L"BuildType", CIM_STRING }, { L"BuildType", CIM_STRING },
{ L"Caption", CIM_STRING|COL_FLAG_DYNAMIC }, { L"Caption", CIM_STRING|COL_FLAG_DYNAMIC },
...@@ -662,6 +663,7 @@ struct record_networkadapterconfig ...@@ -662,6 +663,7 @@ struct record_networkadapterconfig
}; };
struct record_operatingsystem struct record_operatingsystem
{ {
const WCHAR *bootdevice;
const WCHAR *buildnumber; const WCHAR *buildnumber;
const WCHAR *buildtype; const WCHAR *buildtype;
const WCHAR *caption; const WCHAR *caption;
...@@ -3651,6 +3653,7 @@ static enum fill_status fill_operatingsystem( struct table *table, const struct ...@@ -3651,6 +3653,7 @@ static enum fill_status fill_operatingsystem( struct table *table, const struct
RtlGetVersion( &ver ); RtlGetVersion( &ver );
rec = (struct record_operatingsystem *)table->data; rec = (struct record_operatingsystem *)table->data;
rec->bootdevice = L"\\Device\\HarddiskVolume1";
rec->buildnumber = get_osbuildnumber( &ver ); rec->buildnumber = get_osbuildnumber( &ver );
rec->buildtype = L"Wine build"; rec->buildtype = L"Wine build";
rec->caption = get_oscaption( &ver ); rec->caption = get_oscaption( &ver );
......
...@@ -1388,6 +1388,7 @@ static void test_Win32_OperatingSystem( IWbemServices *services ) ...@@ -1388,6 +1388,7 @@ static void test_Win32_OperatingSystem( IWbemServices *services )
hr = IWbemClassObject_EndEnumeration( obj ); hr = IWbemClassObject_EndEnumeration( obj );
ok( hr == S_OK, "got %#lx\n", hr ); ok( hr == S_OK, "got %#lx\n", hr );
check_property( obj, L"BootDevice", VT_BSTR, CIM_STRING );
check_property( obj, L"BuildNumber", VT_BSTR, CIM_STRING ); check_property( obj, L"BuildNumber", VT_BSTR, CIM_STRING );
check_property( obj, L"BuildType", VT_BSTR, CIM_STRING ); check_property( obj, L"BuildType", VT_BSTR, CIM_STRING );
check_property( obj, L"Caption", VT_BSTR, CIM_STRING ); check_property( obj, L"Caption", VT_BSTR, CIM_STRING );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment