Commit ca0d8d8f authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wbemprox: Add a partial implementation of Win32_CDROMDrive.

parent 804e7e91
...@@ -47,6 +47,8 @@ static const WCHAR class_baseboardW[] = ...@@ -47,6 +47,8 @@ static const WCHAR class_baseboardW[] =
{'W','i','n','3','2','_','B','a','s','e','B','o','a','r','d',0}; {'W','i','n','3','2','_','B','a','s','e','B','o','a','r','d',0};
static const WCHAR class_biosW[] = static const WCHAR class_biosW[] =
{'W','i','n','3','2','_','B','I','O','S',0}; {'W','i','n','3','2','_','B','I','O','S',0};
static const WCHAR class_cdromdriveW[] =
{'W','i','n','3','2','_','C','D','R','O','M','D','r','i','v','e',0};
static const WCHAR class_compsysW[] = static const WCHAR class_compsysW[] =
{'W','i','n','3','2','_','C','o','m','p','u','t','e','r','S','y','s','t','e','m',0}; {'W','i','n','3','2','_','C','o','m','p','u','t','e','r','S','y','s','t','e','m',0};
static const WCHAR class_logicaldiskW[] = static const WCHAR class_logicaldiskW[] =
...@@ -208,6 +210,10 @@ static const struct column col_bios[] = ...@@ -208,6 +210,10 @@ static const struct column col_bios[] =
{ prop_serialnumberW, CIM_STRING }, { prop_serialnumberW, CIM_STRING },
{ prop_versionW, CIM_STRING|COL_FLAG_KEY } { prop_versionW, CIM_STRING|COL_FLAG_KEY }
}; };
static const struct column col_cdromdrive[] =
{
{ prop_nameW, CIM_STRING }
};
static const struct column col_compsys[] = static const struct column col_compsys[] =
{ {
{ prop_descriptionW, CIM_STRING }, { prop_descriptionW, CIM_STRING },
...@@ -318,6 +324,8 @@ static const WCHAR bios_serialnumberW[] = ...@@ -318,6 +324,8 @@ static const WCHAR bios_serialnumberW[] =
{'0',0}; {'0',0};
static const WCHAR bios_versionW[] = static const WCHAR bios_versionW[] =
{'W','I','N','E',' ',' ',' ','-',' ','1',0}; {'W','I','N','E',' ',' ',' ','-',' ','1',0};
static const WCHAR cdromdrive_nameW[] =
{'W','i','n','e',' ','C','D','-','R','O','M',' ','A','T','A',' ','D','e','v','i','c','e',0};
static const WCHAR compsys_descriptionW[] = static const WCHAR compsys_descriptionW[] =
{'A','T','/','A','T',' ','C','O','M','P','A','T','I','B','L','E',0}; {'A','T','/','A','T',' ','C','O','M','P','A','T','I','B','L','E',0};
static const WCHAR compsys_domainW[] = static const WCHAR compsys_domainW[] =
...@@ -357,6 +365,10 @@ struct record_bios ...@@ -357,6 +365,10 @@ struct record_bios
const WCHAR *serialnumber; const WCHAR *serialnumber;
const WCHAR *version; const WCHAR *version;
}; };
struct record_cdromdrive
{
const WCHAR *name;
};
struct record_computersystem struct record_computersystem
{ {
const WCHAR *description; const WCHAR *description;
...@@ -471,6 +483,10 @@ static const struct record_bios data_bios[] = ...@@ -471,6 +483,10 @@ static const struct record_bios data_bios[] =
{ {
{ bios_descriptionW, bios_manufacturerW, bios_releasedateW, bios_serialnumberW, bios_versionW } { bios_descriptionW, bios_manufacturerW, bios_releasedateW, bios_serialnumberW, bios_versionW }
}; };
static const struct record_cdromdrive data_cdromdrive[] =
{
{ cdromdrive_nameW }
};
static const struct record_params data_params[] = static const struct record_params data_params[] =
{ {
{ class_stdregprovW, method_enumkeyW, 1, param_defkeyW, CIM_UINT32, 0x80000002 }, { class_stdregprovW, method_enumkeyW, 1, param_defkeyW, CIM_UINT32, 0x80000002 },
...@@ -1114,6 +1130,7 @@ static struct table builtin_classes[] = ...@@ -1114,6 +1130,7 @@ static struct table builtin_classes[] =
{ {
{ class_baseboardW, SIZEOF(col_baseboard), col_baseboard, SIZEOF(data_baseboard), (BYTE *)data_baseboard }, { class_baseboardW, SIZEOF(col_baseboard), col_baseboard, SIZEOF(data_baseboard), (BYTE *)data_baseboard },
{ class_biosW, SIZEOF(col_bios), col_bios, SIZEOF(data_bios), (BYTE *)data_bios }, { class_biosW, SIZEOF(col_bios), col_bios, SIZEOF(data_bios), (BYTE *)data_bios },
{ class_cdromdriveW, SIZEOF(col_cdromdrive), col_cdromdrive, SIZEOF(data_cdromdrive), (BYTE *)data_cdromdrive },
{ class_compsysW, SIZEOF(col_compsys), col_compsys, 0, NULL, fill_compsys }, { class_compsysW, SIZEOF(col_compsys), col_compsys, 0, NULL, fill_compsys },
{ class_logicaldiskW, SIZEOF(col_logicaldisk), col_logicaldisk, 0, NULL, fill_logicaldisk }, { class_logicaldiskW, SIZEOF(col_logicaldisk), col_logicaldisk, 0, NULL, fill_logicaldisk },
{ class_networkadapterW, SIZEOF(col_networkadapter), col_networkadapter, 0, NULL, fill_networkadapter }, { class_networkadapterW, SIZEOF(col_networkadapter), col_networkadapter, 0, NULL, fill_networkadapter },
......
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