wbemprox: Add 'Manufacturer' and 'Name' properties to Win32_PnPEntity class.

Signed-off-by: Eduard Permyakov <epermyakov@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eduard Permyakov 2021-10-13 11:00:03 +03:00 committed by Alexandre Julliard
parent 5d8aac9cb0
commit 8257d1efdc
1 changed files with 7 additions and 1 deletions

View File

@ -286,7 +286,9 @@ static const struct column col_physicalmemory[] =
};
static const struct column col_pnpentity[] =
{
{ L"DeviceId", CIM_STRING|COL_FLAG_DYNAMIC },
{ L"DeviceId", CIM_STRING|COL_FLAG_DYNAMIC },
{ L"Manufacturer", CIM_STRING },
{ L"Name", CIM_STRING },
};
static const struct column col_printer[] =
{
@ -701,6 +703,8 @@ struct record_physicalmemory
struct record_pnpentity
{
const WCHAR *device_id;
const WCHAR *manufacturer;
const WCHAR *name;
};
struct record_printer
{
@ -3063,6 +3067,8 @@ static enum fill_status fill_pnpentity( struct table *table, const struct expr *
ARRAY_SIZE(device_id), NULL ))
{
rec->device_id = heap_strdupW( device_id );
rec->manufacturer = L"The Wine Project";
rec->name = L"Wine PnP Device";
table->num_rows++;
if (!match_row( table, table->num_rows - 1, cond, &status ))