[3/7] wbemprox: Add a partial implementation of Win32_CDROMDrive.

Hans Leidekker hans at codeweavers.com
Thu Oct 4 08:36:54 CDT 2012


---
 dlls/wbemprox/builtin.c |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 43122fe..9b46a9c 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 },
-- 
1.7.10.4







More information about the wine-patches mailing list