Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3bee9c08
Commit
3bee9c08
authored
Jul 06, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Jul 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Implement ConvertInterfaceLuidToGuid() on top of nsi.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
13e596b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+7
-10
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
3bee9c08
...
...
@@ -3213,20 +3213,17 @@ DWORD WINAPI ConvertInterfaceIndexToLuid(NET_IFINDEX index, NET_LUID *luid)
*/
DWORD
WINAPI
ConvertInterfaceLuidToGuid
(
const
NET_LUID
*
luid
,
GUID
*
guid
)
{
DWORD
ret
;
MIB_IFROW
row
;
DWORD
err
;
TRACE
(
"(%p %p)
\n
"
,
luid
,
guid
);
TRACE
(
"(%p %p)
\n
"
,
luid
,
guid
);
if
(
!
luid
||
!
guid
)
return
ERROR_INVALID_PARAMETER
;
row
.
dwIndex
=
luid
->
Info
.
NetLuidIndex
;
if
((
ret
=
GetIfEntry
(
&
row
)))
return
ret
;
memset
(
guid
,
0
,
sizeof
(
*
guid
)
);
guid
->
Data1
=
luid
->
Info
.
NetLuidIndex
;
memcpy
(
guid
->
Data4
+
2
,
"NetDev"
,
6
);
return
NO_ERROR
;
err
=
NsiGetParameter
(
1
,
&
NPI_MS_NDIS_MODULEID
,
NSI_NDIS_IFINFO_TABLE
,
luid
,
sizeof
(
*
luid
),
NSI_PARAM_TYPE_STATIC
,
guid
,
sizeof
(
*
guid
),
FIELD_OFFSET
(
struct
nsi_ndis_ifinfo_static
,
if_guid
)
);
if
(
err
)
memset
(
guid
,
0
,
sizeof
(
*
guid
)
);
return
err
;
}
/******************************************************************
...
...
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