Commit 99c1b557 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wbemprox: Implement Win32_DiskDrive.DeviceId.

parent b637d4ca
......@@ -215,6 +215,7 @@ static const struct column col_compsys[] =
};
static const struct column col_diskdrive[] =
{
{ prop_deviceidW, CIM_STRING|COL_FLAG_KEY },
{ prop_manufacturerW, CIM_STRING },
{ prop_modelW, CIM_STRING },
{ prop_serialnumberW, CIM_STRING }
......@@ -345,6 +346,8 @@ static const WCHAR compsys_manufacturerW[] =
{'T','h','e',' ','W','i','n','e',' ','P','r','o','j','e','c','t',0};
static const WCHAR compsys_modelW[] =
{'W','i','n','e',0};
static const WCHAR diskdrive_deviceidW[] =
{'\\','\\','\\','\\','.','\\','\\','P','H','Y','S','I','C','A','L','D','R','I','V','E','0',0};
static const WCHAR diskdrive_modelW[] =
{'W','i','n','e',' ','D','i','s','k',' ','D','r','i','v','e',0};
static const WCHAR diskdrive_manufacturerW[] =
......@@ -399,6 +402,7 @@ struct record_computersystem
};
struct record_diskdrive
{
const WCHAR *device_id;
const WCHAR *manufacturer;
const WCHAR *name;
const WCHAR *serialnumber;
......@@ -518,7 +522,7 @@ static const struct record_cdromdrive data_cdromdrive[] =
};
static const struct record_diskdrive data_diskdrive[] =
{
{ diskdrive_manufacturerW, diskdrive_modelW }
{ diskdrive_deviceidW, diskdrive_manufacturerW, diskdrive_modelW }
};
static const struct record_params data_params[] =
{
......
......@@ -91,7 +91,11 @@ static void test_select( IWbemServices *services )
{'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ','W','i','n','3','2','_',
'P','r','o','c','e','s','s',' ','W','H','E','R','E',' ','C','a','p','t','i','o','n',' ',
'L','I','K','E',' ','\'','%','%','R','E','G','E','D','I','T','%','\'',0};
static const WCHAR *test[] = { query1, query2, query3, query4, query5, query6, query7 };
static const WCHAR query8[] =
{'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ','W','i','n','3','2','_',
'D','i','s','k','D','r','i','v','e',' ','W','H','E','R','E',' ','D','e','v','i','c','e','I','D','=',
'\"','\\','\\','\\','\\','.','\\','\\','P','H','Y','S','I','C','A','L','D','R','I','V','E','0','\"',0};
static const WCHAR *test[] = { query1, query2, query3, query4, query5, query6, query7, query8 };
HRESULT hr;
IEnumWbemClassObject *result;
BSTR wql = SysAllocString( wqlW );
......
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