Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
c007b5f9
Commit
c007b5f9
authored
Jan 07, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Implement Win32_ComputerSystemProduct.UUID.
parent
00526954
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
builtin.c
dlls/wbemprox/builtin.c
+21
-2
No files found.
dlls/wbemprox/builtin.c
View file @
c007b5f9
...
...
@@ -53,6 +53,8 @@ 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_compsysproductW
[]
=
{
'W'
,
'i'
,
'n'
,
'3'
,
'2'
,
'_'
,
'C'
,
'o'
,
'm'
,
'p'
,
'u'
,
't'
,
'e'
,
'r'
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
0
};
static
const
WCHAR
class_datafileW
[]
=
{
'C'
,
'I'
,
'M'
,
'_'
,
'D'
,
'a'
,
't'
,
'a'
,
'F'
,
'i'
,
'l'
,
'e'
,
0
};
static
const
WCHAR
class_directoryW
[]
=
...
...
@@ -282,6 +284,8 @@ static const WCHAR prop_typeW[] =
{
'T'
,
'y'
,
'p'
,
'e'
,
0
};
static
const
WCHAR
prop_uniqueidW
[]
=
{
'U'
,
'n'
,
'i'
,
'q'
,
'u'
,
'e'
,
'I'
,
'd'
,
0
};
static
const
WCHAR
prop_uuidW
[]
=
{
'U'
,
'U'
,
'I'
,
'D'
,
0
};
static
const
WCHAR
prop_varianttypeW
[]
=
{
'V'
,
'a'
,
'r'
,
'i'
,
'a'
,
'n'
,
't'
,
'T'
,
'y'
,
'p'
,
'e'
,
0
};
static
const
WCHAR
prop_versionW
[]
=
...
...
@@ -332,6 +336,10 @@ static const struct column col_compsys[] =
{
prop_numprocessorsW
,
CIM_UINT32
,
VT_I4
},
{
prop_totalphysicalmemoryW
,
CIM_UINT64
}
};
static
const
struct
column
col_compsysproduct
[]
=
{
{
prop_uuidW
,
CIM_STRING
}
};
static
const
struct
column
col_datafile
[]
=
{
{
prop_nameW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
|
COL_FLAG_KEY
},
...
...
@@ -563,6 +571,9 @@ 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
};
static
const
WCHAR
compsysproduct_uuidW
[]
=
{
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'-'
,
'0'
,
'0'
,
'0'
,
'0'
,
'-'
,
'0'
,
'0'
,
'0'
,
'0'
,
'-'
,
'0'
,
'0'
,
'0'
,
'0'
,
'-'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
'0'
,
0
};
static
const
WCHAR
diskdrive_interfacetypeW
[]
=
{
'I'
,
'D'
,
'E'
,
0
};
static
const
WCHAR
diskdrive_manufacturerW
[]
=
...
...
@@ -649,6 +660,10 @@ struct record_computersystem
UINT32
num_processors
;
UINT64
total_physical_memory
;
};
struct
record_computersystemproduct
{
const
WCHAR
*
uuid
;
};
struct
record_datafile
{
const
WCHAR
*
name
;
...
...
@@ -855,6 +870,10 @@ static const struct record_bios data_bios[] =
{
bios_descriptionW
,
bios_descriptionW
,
bios_manufacturerW
,
bios_releasedateW
,
bios_serialnumberW
,
bios_smbiosbiosversionW
,
bios_versionW
}
};
static
const
struct
record_computersystemproduct
data_compsysproduct
[]
=
{
{
compsysproduct_uuidW
}
};
static
const
struct
record_param
data_param
[]
=
{
{
class_processW
,
method_getownerW
,
-
1
,
param_returnvalueW
,
CIM_UINT32
,
VT_I4
},
...
...
@@ -2456,6 +2475,7 @@ static struct table builtin_classes[] =
{
class_biosW
,
SIZEOF
(
col_bios
),
col_bios
,
SIZEOF
(
data_bios
),
0
,
(
BYTE
*
)
data_bios
},
{
class_cdromdriveW
,
SIZEOF
(
col_cdromdrive
),
col_cdromdrive
,
0
,
0
,
NULL
,
fill_cdromdrive
},
{
class_compsysW
,
SIZEOF
(
col_compsys
),
col_compsys
,
0
,
0
,
NULL
,
fill_compsys
},
{
class_compsysproductW
,
SIZEOF
(
col_compsysproduct
),
col_compsysproduct
,
SIZEOF
(
data_compsysproduct
),
0
,
(
BYTE
*
)
data_compsysproduct
},
{
class_datafileW
,
SIZEOF
(
col_datafile
),
col_datafile
,
0
,
0
,
NULL
,
fill_datafile
},
{
class_directoryW
,
SIZEOF
(
col_directory
),
col_directory
,
0
,
0
,
NULL
,
fill_directory
},
{
class_diskdriveW
,
SIZEOF
(
col_diskdrive
),
col_diskdrive
,
0
,
0
,
NULL
,
fill_diskdrive
},
...
...
@@ -2463,8 +2483,7 @@ static struct table builtin_classes[] =
{
class_logicaldiskW
,
SIZEOF
(
col_logicaldisk
),
col_logicaldisk
,
0
,
0
,
NULL
,
fill_logicaldisk
},
{
class_logicaldisk2W
,
SIZEOF
(
col_logicaldisk
),
col_logicaldisk
,
0
,
0
,
NULL
,
fill_logicaldisk
},
{
class_networkadapterW
,
SIZEOF
(
col_networkadapter
),
col_networkadapter
,
0
,
0
,
NULL
,
fill_networkadapter
},
{
class_networkadapterconfigW
,
SIZEOF
(
col_networkadapterconfig
),
col_networkadapterconfig
,
0
,
0
,
NULL
,
fill_networkadapterconfig
},
{
class_networkadapterconfigW
,
SIZEOF
(
col_networkadapterconfig
),
col_networkadapterconfig
,
0
,
0
,
NULL
,
fill_networkadapterconfig
},
{
class_osW
,
SIZEOF
(
col_os
),
col_os
,
0
,
0
,
NULL
,
fill_os
},
{
class_paramsW
,
SIZEOF
(
col_param
),
col_param
,
SIZEOF
(
data_param
),
0
,
(
BYTE
*
)
data_param
},
{
class_physicalmediaW
,
SIZEOF
(
col_physicalmedia
),
col_physicalmedia
,
SIZEOF
(
data_physicalmedia
),
0
,
(
BYTE
*
)
data_physicalmedia
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment