Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
40b26279
Commit
40b26279
authored
Oct 14, 2022
by
Louis Lenders
Committed by
Alexandre Julliard
Oct 14, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Add HypervisorPresent property to win32_ComputerSystem.
Native Access 2 queries for this property
parent
8aef70a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
builtin.c
dlls/wbemprox/builtin.c
+3
-0
query.c
dlls/wbemprox/tests/query.c
+11
-0
No files found.
dlls/wbemprox/builtin.c
View file @
40b26279
...
@@ -100,6 +100,7 @@ static const struct column col_compsys[] =
...
@@ -100,6 +100,7 @@ static const struct column col_compsys[] =
{
L"Description"
,
CIM_STRING
},
{
L"Description"
,
CIM_STRING
},
{
L"Domain"
,
CIM_STRING
},
{
L"Domain"
,
CIM_STRING
},
{
L"DomainRole"
,
CIM_UINT16
},
{
L"DomainRole"
,
CIM_UINT16
},
{
L"HypervisorPresent"
,
CIM_BOOLEAN
},
{
L"Manufacturer"
,
CIM_STRING
},
{
L"Manufacturer"
,
CIM_STRING
},
{
L"Model"
,
CIM_STRING
},
{
L"Model"
,
CIM_STRING
},
{
L"Name"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
L"Name"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
...
@@ -541,6 +542,7 @@ struct record_computersystem
...
@@ -541,6 +542,7 @@ struct record_computersystem
const
WCHAR
*
description
;
const
WCHAR
*
description
;
const
WCHAR
*
domain
;
const
WCHAR
*
domain
;
UINT16
domainrole
;
UINT16
domainrole
;
int
hypervisorpresent
;
const
WCHAR
*
manufacturer
;
const
WCHAR
*
manufacturer
;
const
WCHAR
*
model
;
const
WCHAR
*
model
;
const
WCHAR
*
name
;
const
WCHAR
*
name
;
...
@@ -1669,6 +1671,7 @@ static enum fill_status fill_compsys( struct table *table, const struct expr *co
...
@@ -1669,6 +1671,7 @@ static enum fill_status fill_compsys( struct table *table, const struct expr *co
rec
->
description
=
L"AT/AT COMPATIBLE"
;
rec
->
description
=
L"AT/AT COMPATIBLE"
;
rec
->
domain
=
L"WORKGROUP"
;
rec
->
domain
=
L"WORKGROUP"
;
rec
->
domainrole
=
0
;
/* standalone workstation */
rec
->
domainrole
=
0
;
/* standalone workstation */
rec
->
hypervisorpresent
=
0
;
rec
->
manufacturer
=
get_compsysproduct_vendor
(
buf
,
len
);
rec
->
manufacturer
=
get_compsysproduct_vendor
(
buf
,
len
);
rec
->
model
=
get_compsysproduct_name
(
buf
,
len
);
rec
->
model
=
get_compsysproduct_name
(
buf
,
len
);
rec
->
name
=
get_computername
();
rec
->
name
=
get_computername
();
...
...
dlls/wbemprox/tests/query.c
View file @
40b26279
...
@@ -751,6 +751,17 @@ static void test_Win32_ComputerSystem( IWbemServices *services )
...
@@ -751,6 +751,17 @@ static void test_Win32_ComputerSystem( IWbemServices *services )
trace
(
"numlogicalprocessors %ld
\n
"
,
V_I4
(
&
value
)
);
trace
(
"numlogicalprocessors %ld
\n
"
,
V_I4
(
&
value
)
);
}
}
type
=
0xdeadbeef
;
VariantInit
(
&
value
);
hr
=
IWbemClassObject_Get
(
obj
,
L"HypervisorPresent"
,
0
,
&
value
,
&
type
,
NULL
);
ok
(
hr
==
S_OK
||
broken
(
hr
==
WBEM_E_NOT_FOUND
)
/* win7 testbot */
,
"got %#lx
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
V_VT
(
&
value
)
==
VT_BOOL
,
"unexpected variant type %#x
\n
"
,
V_VT
(
&
value
)
);
ok
(
type
==
CIM_BOOLEAN
,
"unexpected type %#lx
\n
"
,
type
);
trace
(
"HypervisorPresent %d
\n
"
,
V_BOOL
(
&
value
)
);
}
check_property
(
obj
,
L"NumberOfProcessors"
,
VT_I4
,
CIM_UINT32
);
check_property
(
obj
,
L"NumberOfProcessors"
,
VT_I4
,
CIM_UINT32
);
check_property
(
obj
,
L"SystemType"
,
VT_BSTR
,
CIM_STRING
);
check_property
(
obj
,
L"SystemType"
,
VT_BSTR
,
CIM_STRING
);
...
...
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