wbemprox: Implement Win32_VideoController.AdapterCompatibility.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48973
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Hans Leidekker 2020-04-20 10:38:11 +02:00 committed by Alexandre Julliard
parent 78e9b02ceb
commit 550d96b0bf
2 changed files with 4 additions and 0 deletions

View File

@ -399,6 +399,7 @@ static const struct column col_systemsecurity[] =
}; };
static const struct column col_videocontroller[] = static const struct column col_videocontroller[] =
{ {
{ L"AdapterCompatibility", CIM_STRING },
{ L"AdapterDACType", CIM_STRING }, { L"AdapterDACType", CIM_STRING },
{ L"AdapterRAM", CIM_UINT32 }, { L"AdapterRAM", CIM_UINT32 },
{ L"Availability", CIM_UINT16 }, { L"Availability", CIM_UINT16 },
@ -783,6 +784,7 @@ struct record_systemenclosure
}; };
struct record_videocontroller struct record_videocontroller
{ {
const WCHAR *adapter_compatibility;
const WCHAR *adapter_dactype; const WCHAR *adapter_dactype;
UINT32 adapter_ram; UINT32 adapter_ram;
UINT16 availability; UINT16 availability;
@ -3842,6 +3844,7 @@ static enum fill_status fill_videocontroller( struct table *table, const struct
done: done:
rec = (struct record_videocontroller *)table->data; rec = (struct record_videocontroller *)table->data;
rec->adapter_compatibility = L"(Standard display types)";
rec->adapter_dactype = L"Integrated RAMDAC"; rec->adapter_dactype = L"Integrated RAMDAC";
rec->adapter_ram = vidmem; rec->adapter_ram = vidmem;
rec->availability = 3; /* Running or Full Power */ rec->availability = 3; /* Running or Full Power */

View File

@ -1282,6 +1282,7 @@ static void test_Win32_VideoController( IWbemServices *services )
hr = IEnumWbemClassObject_Next( result, 10000, 1, &obj, &count ); hr = IEnumWbemClassObject_Next( result, 10000, 1, &obj, &count );
if (hr != S_OK) break; if (hr != S_OK) break;
check_property( obj, L"AdapterCompatibility", VT_BSTR, CIM_STRING );
check_property( obj, L"Availability", VT_I4, CIM_UINT16 ); check_property( obj, L"Availability", VT_I4, CIM_UINT16 );
check_property( obj, L"ConfigManagerErrorCode", VT_I4, CIM_UINT32 ); check_property( obj, L"ConfigManagerErrorCode", VT_I4, CIM_UINT32 );
check_property( obj, L"DriverDate", VT_BSTR, CIM_DATETIME ); check_property( obj, L"DriverDate", VT_BSTR, CIM_DATETIME );