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
b4280a48
Commit
b4280a48
authored
Aug 30, 2023
by
Wonjun Jung
Committed by
Alexandre Julliard
Aug 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Add NetConnectionID, NetEnabled properties in Win32_NetworkAdapter.
parent
b27d1809
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
builtin.c
dlls/wbemprox/builtin.c
+10
-1
No files found.
dlls/wbemprox/builtin.c
View file @
b4280a48
...
...
@@ -204,7 +204,9 @@ static const struct column col_networkadapter[] =
{
L"MACAddress"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
L"Manufacturer"
,
CIM_STRING
},
{
L"Name"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
L"NetConnectionID"
,
CIM_STRING
},
{
L"NetConnectionStatus"
,
CIM_UINT16
},
{
L"NetEnabled"
,
CIM_BOOLEAN
},
{
L"PhysicalAdapter"
,
CIM_BOOLEAN
},
{
L"PNPDeviceID"
,
CIM_STRING
},
{
L"ServiceName"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
...
...
@@ -655,7 +657,9 @@ struct record_networkadapter
const
WCHAR
*
mac_address
;
const
WCHAR
*
manufacturer
;
const
WCHAR
*
name
;
const
WCHAR
*
netconnection_id
;
UINT16
netconnection_status
;
int
netenabled
;
int
physicaladapter
;
const
WCHAR
*
pnpdevice_id
;
const
WCHAR
*
servicename
;
...
...
@@ -2853,6 +2857,7 @@ static enum fill_status fill_networkadapter( struct table *table, const struct e
UINT
row
=
0
,
offset
=
0
,
count
=
0
;
DWORD
size
=
0
,
ret
;
int
adaptertypeid
,
physical
;
UINT16
connection_status
;
enum
fill_status
status
=
FILL_STATUS_UNFILTERED
;
ret
=
GetAdaptersAddresses
(
AF_UNSPEC
,
0
,
NULL
,
NULL
,
&
size
);
...
...
@@ -2877,6 +2882,8 @@ static enum fill_status fill_networkadapter( struct table *table, const struct e
{
if
(
aa
->
IfType
==
IF_TYPE_SOFTWARE_LOOPBACK
)
continue
;
connection_status
=
get_connection_status
(
aa
->
OperStatus
);
rec
=
(
struct
record_networkadapter
*
)(
table
->
data
+
offset
);
swprintf
(
device_id
,
ARRAY_SIZE
(
device_id
),
L"%u"
,
aa
->
IfIndex
);
rec
->
adaptertype
=
get_adaptertype
(
aa
->
IfType
,
&
adaptertypeid
,
&
physical
);
...
...
@@ -2888,8 +2895,10 @@ static enum fill_status fill_networkadapter( struct table *table, const struct e
rec
->
interface_index
=
aa
->
IfIndex
;
rec
->
mac_address
=
get_mac_address
(
aa
->
PhysicalAddress
,
aa
->
PhysicalAddressLength
);
rec
->
manufacturer
=
L"The Wine Project"
;
rec
->
netconnection_id
=
NULL
;
/* FIXME Windows seems to fill this when it's connected and in use */
rec
->
name
=
wcsdup
(
aa
->
FriendlyName
);
rec
->
netconnection_status
=
get_connection_status
(
aa
->
OperStatus
);
rec
->
netenabled
=
connection_status
?
-
1
:
0
;
rec
->
netconnection_status
=
connection_status
;
rec
->
physicaladapter
=
physical
;
rec
->
pnpdevice_id
=
L"PCI
\\
VEN_8086&DEV_100E&SUBSYS_001E8086&REV_02
\\
3&267A616A&1&18"
;
rec
->
servicename
=
wcsdup
(
aa
->
FriendlyName
);
...
...
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