Module: wine Branch: master Commit: 25b79d1886a892489a567a460840a7d0f12cbaf0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=25b79d1886a892489a567a4608...
Author: Hans Leidekker hans@codeweavers.com Date: Tue Jun 19 10:20:22 2012 +0200
wbemprox: Add a partial Win32_ComputerSystem class implementation.
---
dlls/wbemprox/builtin.c | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c index 2cf55d5..2aa2855 100644 --- a/dlls/wbemprox/builtin.c +++ b/dlls/wbemprox/builtin.c @@ -33,6 +33,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(wbemprox);
static const WCHAR class_biosW[] = {'W','i','n','3','2','_','B','I','O','S',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_processW[] = {'W','i','n','3','2','_','P','r','o','c','e','s','s',0};
@@ -42,6 +44,8 @@ static const WCHAR prop_descriptionW[] = {'D','e','s','c','r','i','p','t','i','o','n',0}; static const WCHAR prop_manufacturerW[] = {'M','a','n','u','f','a','c','t','u','r','e','r',0}; +static const WCHAR prop_modelW[] = + {'M','o','d','e','l',0}; static const WCHAR prop_pprocessidW[] = {'P','a','r','e','n','t','P','r','o','c','e','s','s','I','D',0}; static const WCHAR prop_processidW[] = @@ -60,6 +64,12 @@ static const struct column col_bios[] = { prop_releasedateW, CIM_DATETIME }, { prop_serialnumberW, CIM_STRING } }; +static const struct column col_compsys[] = +{ + { prop_descriptionW, CIM_STRING }, + { prop_manufacturerW, CIM_STRING }, + { prop_modelW, CIM_STRING } +}; static const struct column col_process[] = { { prop_captionW, CIM_STRING }, @@ -77,6 +87,12 @@ static const WCHAR bios_releasedateW[] = {'2','0','1','2','0','6','0','8','0','0','0','0','0','0','.','0','0','0','0','0','0','+','0','0','0',0}; static const WCHAR bios_serialnumberW[] = {'0',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_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};
#include "pshpack1.h" struct record_bios @@ -86,6 +102,12 @@ struct record_bios const WCHAR *releasedate; const WCHAR *serialnumber; }; +struct record_computersystem +{ + const WCHAR *description; + const WCHAR *manufacturer; + const WCHAR *model; +}; struct record_process { const WCHAR *caption; @@ -100,6 +122,10 @@ static const struct record_bios data_bios[] = { { bios_descriptionW, bios_manufacturerW, bios_releasedateW, bios_serialnumberW } }; +static const struct record_computersystem data_compsys[] = +{ + { compsys_descriptionW, compsys_manufacturerW, compsys_modelW } +};
static void fill_process( struct table *table ) { @@ -144,6 +170,7 @@ done: static struct table classtable[] = { { class_biosW, SIZEOF(col_bios), col_bios, SIZEOF(data_bios), (BYTE *)data_bios, NULL }, + { class_compsysW, SIZEOF(col_compsys), col_compsys, SIZEOF(data_compsys), (BYTE *)data_compsys, NULL }, { class_processW, SIZEOF(col_process), col_process, 0, NULL, fill_process } };