From ca0d8d8f63fa893ccc96a61f3556e8ed58a09cfc Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Thu, 4 Oct 2012 15:36:54 +0200 Subject: [PATCH] wbemprox: Add a partial implementation of Win32_CDROMDrive. --- dlls/wbemprox/builtin.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c index 43122fe0056..9b46a9c2c3e 100644 --- a/dlls/wbemprox/builtin.c +++ b/dlls/wbemprox/builtin.c @@ -47,6 +47,8 @@ static const WCHAR class_baseboardW[] = {'W','i','n','3','2','_','B','a','s','e','B','o','a','r','d',0}; static const WCHAR class_biosW[] = {'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[] = {'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[] = @@ -208,6 +210,10 @@ static const struct column col_bios[] = { prop_serialnumberW, CIM_STRING }, { prop_versionW, CIM_STRING|COL_FLAG_KEY } }; +static const struct column col_cdromdrive[] = +{ + { prop_nameW, CIM_STRING } +}; static const struct column col_compsys[] = { { prop_descriptionW, CIM_STRING }, @@ -318,6 +324,8 @@ static const WCHAR bios_serialnumberW[] = {'0',0}; static const WCHAR bios_versionW[] = {'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[] = {'A','T','/','A','T',' ','C','O','M','P','A','T','I','B','L','E',0}; static const WCHAR compsys_domainW[] = @@ -357,6 +365,10 @@ struct record_bios const WCHAR *serialnumber; const WCHAR *version; }; +struct record_cdromdrive +{ + const WCHAR *name; +}; struct record_computersystem { const WCHAR *description; @@ -471,6 +483,10 @@ static const struct record_bios data_bios[] = { { 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[] = { { class_stdregprovW, method_enumkeyW, 1, param_defkeyW, CIM_UINT32, 0x80000002 }, @@ -1114,6 +1130,7 @@ static struct table builtin_classes[] = { { 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_cdromdriveW, SIZEOF(col_cdromdrive), col_cdromdrive, SIZEOF(data_cdromdrive), (BYTE *)data_cdromdrive }, { class_compsysW, SIZEOF(col_compsys), col_compsys, 0, NULL, fill_compsys }, { class_logicaldiskW, SIZEOF(col_logicaldisk), col_logicaldisk, 0, NULL, fill_logicaldisk }, { class_networkadapterW, SIZEOF(col_networkadapter), col_networkadapter, 0, NULL, fill_networkadapter },