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
988253a6
Commit
988253a6
authored
Feb 06, 2024
by
Louis Lenders
Committed by
Alexandre Julliard
Feb 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Add property 'ClassGuid' to Win32_PnPEntity.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=56291
parent
de5a07b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
builtin.c
dlls/wbemprox/builtin.c
+5
-1
No files found.
dlls/wbemprox/builtin.c
View file @
988253a6
...
...
@@ -301,6 +301,7 @@ static const struct column col_physicalmemory[] =
static
const
struct
column
col_pnpentity
[]
=
{
{
L"Caption"
,
CIM_STRING
},
{
L"ClassGuid"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
L"DeviceId"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
L"Manufacturer"
,
CIM_STRING
},
{
L"Name"
,
CIM_STRING
},
...
...
@@ -755,6 +756,7 @@ struct record_physicalmemory
struct
record_pnpentity
{
const
WCHAR
*
caption
;
const
WCHAR
*
class_guid
;
const
WCHAR
*
device_id
;
const
WCHAR
*
manufacturer
;
const
WCHAR
*
name
;
...
...
@@ -3176,11 +3178,13 @@ static enum fill_status fill_pnpentity( struct table *table, const struct expr *
idx
=
0
;
while
(
SetupDiEnumDeviceInfo
(
device_info_set
,
idx
++
,
&
devinfo
))
{
WCHAR
device_id
[
MAX_PATH
];
WCHAR
device_id
[
MAX_PATH
]
,
guid
[
GUID_SIZE
]
;
if
(
SetupDiGetDeviceInstanceIdW
(
device_info_set
,
&
devinfo
,
device_id
,
ARRAY_SIZE
(
device_id
),
NULL
))
{
StringFromGUID2
(
&
devinfo
.
ClassGuid
,
guid
,
ARRAY_SIZE
(
guid
)
);
rec
->
caption
=
L"Wine PnP Device"
;
rec
->
class_guid
=
wcsdup
(
wcslwr
(
guid
)
);
rec
->
device_id
=
wcsdup
(
device_id
);
rec
->
manufacturer
=
L"The Wine Project"
;
rec
->
name
=
L"Wine PnP Device"
;
...
...
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