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
b5073646
Commit
b5073646
authored
Jan 28, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Add a couple of network properties.
parent
6a042307
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
builtin.c
dlls/wbemprox/builtin.c
+12
-1
No files found.
dlls/wbemprox/builtin.c
View file @
b5073646
...
...
@@ -165,6 +165,8 @@ static const WCHAR prop_interfaceindexW[] =
{
'I'
,
'n'
,
't'
,
'e'
,
'r'
,
'f'
,
'a'
,
'c'
,
'e'
,
'I'
,
'n'
,
'd'
,
'e'
,
'x'
,
0
};
static
const
WCHAR
prop_intvalueW
[]
=
{
'I'
,
'n'
,
't'
,
'e'
,
'g'
,
'e'
,
'r'
,
'V'
,
'a'
,
'l'
,
'u'
,
'e'
,
0
};
static
const
WCHAR
prop_ipconnectionmetricW
[]
=
{
'I'
,
'P'
,
'C'
,
'o'
,
'n'
,
'n'
,
'e'
,
'c'
,
't'
,
'i'
,
'o'
,
'n'
,
'M'
,
'e'
,
't'
,
'r'
,
'i'
,
'c'
,
0
};
static
const
WCHAR
prop_ipenabledW
[]
=
{
'I'
,
'P'
,
'E'
,
'n'
,
'a'
,
'b'
,
'l'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
prop_lastbootuptimeW
[]
=
...
...
@@ -341,9 +343,11 @@ static const struct column col_networkadapter[] =
{
{
prop_adaptertypeW
,
CIM_STRING
},
{
prop_deviceidW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
|
COL_FLAG_KEY
},
{
prop_indexW
,
CIM_UINT32
,
VT_I4
},
{
prop_interfaceindexW
,
CIM_UINT32
,
VT_I4
},
{
prop_macaddressW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
prop_manufacturerW
,
CIM_STRING
},
{
prop_nameW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
prop_netconnectionstatusW
,
CIM_UINT16
,
VT_I4
},
{
prop_physicaladapterW
,
CIM_BOOLEAN
},
{
prop_pnpdeviceidW
,
CIM_STRING
},
...
...
@@ -352,6 +356,7 @@ static const struct column col_networkadapter[] =
static
const
struct
column
col_networkadapterconfig
[]
=
{
{
prop_indexW
,
CIM_UINT32
|
COL_FLAG_KEY
},
{
prop_ipconnectionmetricW
,
CIM_UINT32
},
{
prop_ipenabledW
,
CIM_BOOLEAN
},
{
prop_macaddressW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
}
};
...
...
@@ -616,9 +621,11 @@ struct record_networkadapter
{
const
WCHAR
*
adaptertype
;
const
WCHAR
*
device_id
;
INT32
interface_index
;
UINT32
index
;
UINT32
interface_index
;
const
WCHAR
*
mac_address
;
const
WCHAR
*
manufacturer
;
const
WCHAR
*
name
;
UINT16
netconnection_status
;
int
physicaladapter
;
const
WCHAR
*
pnpdevice_id
;
...
...
@@ -627,6 +634,7 @@ struct record_networkadapter
struct
record_networkadapterconfig
{
UINT32
index
;
UINT32
ipconnectionmetric
;
int
ipenabled
;
const
WCHAR
*
mac_address
;
};
...
...
@@ -1620,9 +1628,11 @@ static enum fill_status fill_networkadapter( struct table *table, const struct e
sprintfW
(
device_id
,
fmtW
,
aa
->
u
.
s
.
IfIndex
);
rec
->
adaptertype
=
get_adaptertype
(
aa
->
IfType
,
&
physical
);
rec
->
device_id
=
heap_strdupW
(
device_id
);
rec
->
index
=
aa
->
u
.
s
.
IfIndex
;
rec
->
interface_index
=
aa
->
u
.
s
.
IfIndex
;
rec
->
mac_address
=
get_mac_address
(
aa
->
PhysicalAddress
,
aa
->
PhysicalAddressLength
);
rec
->
manufacturer
=
compsys_manufacturerW
;
rec
->
name
=
heap_strdupW
(
aa
->
FriendlyName
);
rec
->
netconnection_status
=
get_connection_status
(
aa
->
OperStatus
);
rec
->
physicaladapter
=
physical
;
rec
->
pnpdevice_id
=
networkadapter_pnpdeviceidW
;
...
...
@@ -1669,6 +1679,7 @@ static enum fill_status fill_networkadapterconfig( struct table *table, const st
{
rec
=
(
struct
record_networkadapterconfig
*
)(
table
->
data
+
offset
);
rec
->
index
=
aa
->
u
.
s
.
IfIndex
;
rec
->
ipconnectionmetric
=
20
;
rec
->
ipenabled
=
-
1
;
rec
->
mac_address
=
get_mac_address
(
aa
->
PhysicalAddress
,
aa
->
PhysicalAddressLength
);
if
(
!
match_row
(
table
,
row
,
cond
,
&
status
))
...
...
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