[1/3] wbemprox: Implement Win32_DiskDrive.MediaType.
Hans Leidekker
hans at codeweavers.com
Fri Feb 28 04:21:11 CST 2014
---
dlls/wbemprox/builtin.c | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
index 4b02ea2..449eb2f 100644
--- a/dlls/wbemprox/builtin.c
+++ b/dlls/wbemprox/builtin.c
@@ -181,6 +181,8 @@ static const WCHAR prop_manufacturerW[] =
{'M','a','n','u','f','a','c','t','u','r','e','r',0};
static const WCHAR prop_maxclockspeedW[] =
{'M','a','x','C','l','o','c','k','S','p','e','e','d',0};
+static const WCHAR prop_mediatypeW[] =
+ {'M','e','d','i','a','T','y','p','e',0};
static const WCHAR prop_memberW[] =
{'M','e','m','b','e','r',0};
static const WCHAR prop_methodW[] =
@@ -315,6 +317,7 @@ static const struct column col_diskdrive[] =
{ prop_deviceidW, CIM_STRING|COL_FLAG_KEY },
{ prop_indexW, CIM_UINT32, VT_I4 },
{ prop_manufacturerW, CIM_STRING },
+ { prop_mediatypeW, CIM_STRING },
{ prop_modelW, CIM_STRING },
{ prop_serialnumberW, CIM_STRING }
};
@@ -507,10 +510,12 @@ 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[] =
{'(','S','t','a','n','d','a','r','d',' ','d','i','s','k',' ','d','r','i','v','e','s',')',0};
+static const WCHAR diskdrive_mediatypeW[] =
+ {'F','i','x','e','d',' ','h','a','r','d',' ','d','i','s','k',0};
+static const WCHAR diskdrive_modelW[] =
+ {'W','i','n','e',' ','D','i','s','k',' ','D','r','i','v','e',0};
static const WCHAR diskdrive_serialW[] =
{'W','I','N','E','H','D','I','S','K',0};
static const WCHAR networkadapter_pnpdeviceidW[]=
@@ -593,6 +598,7 @@ struct record_diskdrive
const WCHAR *device_id;
UINT32 index;
const WCHAR *manufacturer;
+ const WCHAR *mediatype;
const WCHAR *name;
const WCHAR *serialnumber;
};
@@ -762,7 +768,8 @@ static const struct record_bios data_bios[] =
};
static const struct record_diskdrive data_diskdrive[] =
{
- { diskdrive_deviceidW, 0, diskdrive_manufacturerW, diskdrive_modelW, diskdrive_serialW }
+ { diskdrive_deviceidW, 0, diskdrive_manufacturerW, diskdrive_mediatypeW, diskdrive_modelW,
+ diskdrive_serialW }
};
static const struct record_param data_param[] =
{
--
1.8.5.3
More information about the wine-patches
mailing list