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
fafab917
Commit
fafab917
authored
Dec 23, 2015
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Implement Win32_NetworkAdapterConfiguration.SettingID.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0c38f708
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
Makefile.in
dlls/wbemprox/Makefile.in
+1
-1
builtin.c
dlls/wbemprox/builtin.c
+17
-1
No files found.
dlls/wbemprox/Makefile.in
View file @
fafab917
MODULE
=
wbemprox.dll
IMPORTS
=
winspool version iphlpapi dxgi oleaut32 ole32 advapi32 user32 gdi32 ws2_32
IMPORTS
=
winspool version iphlpapi dxgi oleaut32 ole32 advapi32 user32 gdi32 ws2_32
rpcrt4
C_SRCS
=
\
builtin.c
\
...
...
dlls/wbemprox/builtin.c
View file @
fafab917
...
...
@@ -305,6 +305,8 @@ static const WCHAR prop_servicepackminorW[] =
{
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
'P'
,
'a'
,
'c'
,
'k'
,
'M'
,
'i'
,
'n'
,
'o'
,
'r'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
prop_servicetypeW
[]
=
{
'S'
,
'e'
,
'r'
,
'v'
,
'i'
,
'c'
,
'e'
,
'T'
,
'y'
,
'p'
,
'e'
,
0
};
static
const
WCHAR
prop_settingidW
[]
=
{
'S'
,
'e'
,
't'
,
't'
,
'i'
,
'n'
,
'g'
,
'I'
,
'D'
,
0
};
static
const
WCHAR
prop_smbiosbiosversionW
[]
=
{
'S'
,
'M'
,
'B'
,
'I'
,
'O'
,
'S'
,
'B'
,
'I'
,
'O'
,
'S'
,
'V'
,
'e'
,
'r'
,
's'
,
'i'
,
'o'
,
'n'
,
0
};
static
const
WCHAR
prop_startmodeW
[]
=
...
...
@@ -485,7 +487,8 @@ static const struct column col_networkadapterconfig[] =
{
prop_indexW
,
CIM_UINT32
|
COL_FLAG_KEY
,
VT_I4
},
{
prop_ipconnectionmetricW
,
CIM_UINT32
,
VT_I4
},
{
prop_ipenabledW
,
CIM_BOOLEAN
},
{
prop_macaddressW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
}
{
prop_macaddressW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
prop_settingidW
,
CIM_STRING
|
COL_FLAG_DYNAMIC
}
};
static
const
struct
column
col_os
[]
=
{
...
...
@@ -880,6 +883,7 @@ struct record_networkadapterconfig
UINT32
ipconnectionmetric
;
int
ipenabled
;
const
WCHAR
*
mac_address
;
const
WCHAR
*
settingid
;
};
struct
record_operatingsystem
{
...
...
@@ -2189,6 +2193,17 @@ static struct array *get_dnsserversearchorder( IP_ADAPTER_DNS_SERVER_ADDRESS *li
ret
->
ptr
=
ptr
;
return
ret
;
}
static
WCHAR
*
get_settingid
(
UINT32
index
)
{
GUID
guid
;
WCHAR
*
ret
,
*
str
;
memset
(
&
guid
,
0
,
sizeof
(
guid
)
);
guid
.
Data1
=
index
;
UuidToStringW
(
&
guid
,
&
str
);
ret
=
heap_strdupW
(
str
);
RpcStringFreeW
(
&
str
);
return
ret
;
}
static
enum
fill_status
fill_networkadapterconfig
(
struct
table
*
table
,
const
struct
expr
*
cond
)
{
...
...
@@ -2230,6 +2245,7 @@ static enum fill_status fill_networkadapterconfig( struct table *table, const st
rec
->
ipconnectionmetric
=
20
;
rec
->
ipenabled
=
-
1
;
rec
->
mac_address
=
get_mac_address
(
aa
->
PhysicalAddress
,
aa
->
PhysicalAddressLength
);
rec
->
settingid
=
get_settingid
(
rec
->
index
);
if
(
!
match_row
(
table
,
row
,
cond
,
&
status
))
{
free_row_values
(
table
,
row
);
...
...
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