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
805e30ee
Commit
805e30ee
authored
Jul 08, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Jul 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Implement GetNumberOfInterfaces() on top of nsi.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0b5a6c70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
16 deletions
+9
-16
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+9
-12
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+0
-4
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
805e30ee
...
...
@@ -2376,21 +2376,18 @@ DWORD WINAPI GetNetworkParams(PFIXED_INFO pFixedInfo, PULONG pOutBufLen)
* RETURNS
* NO_ERROR on success, ERROR_INVALID_PARAMETER if pdwNumIf is NULL.
*/
DWORD
WINAPI
GetNumberOfInterfaces
(
PDWORD
pdwNumIf
)
DWORD
WINAPI
GetNumberOfInterfaces
(
DWORD
*
count
)
{
DWORD
ret
;
DWORD
err
,
num
;
TRACE
(
"pdwNumIf %p
\n
"
,
pdwNumIf
);
if
(
!
pdwNumIf
)
ret
=
ERROR_INVALID_PARAMETER
;
else
{
*
pdwNumIf
=
get_interface_indices
(
FALSE
,
NULL
);
ret
=
NO_ERROR
;
}
TRACE
(
"returning %d
\n
"
,
ret
);
return
ret
;
}
TRACE
(
"count %p
\n
"
,
count
);
if
(
!
count
)
return
ERROR_INVALID_PARAMETER
;
err
=
NsiEnumerateObjectsAllParameters
(
1
,
1
,
&
NPI_MS_NDIS_MODULEID
,
NSI_NDIS_IFINFO_TABLE
,
NULL
,
0
,
NULL
,
0
,
NULL
,
0
,
NULL
,
0
,
&
num
);
*
count
=
err
?
0
:
num
;
return
err
;
}
/******************************************************************
* GetPerAdapterInfo (IPHLPAPI.@)
...
...
dlls/iphlpapi/tests/iphlpapi.c
View file @
805e30ee
...
...
@@ -138,10 +138,6 @@ static void testGetNumberOfInterfaces(void)
}
apiReturn
=
GetNumberOfInterfaces
(
&
numInterfaces
);
if
(
apiReturn
==
ERROR_NOT_SUPPORTED
)
{
skip
(
"GetNumberOfInterfaces is not supported
\n
"
);
return
;
}
ok
(
apiReturn
==
NO_ERROR
,
"GetNumberOfInterfaces returned %d, expected 0
\n
"
,
apiReturn
);
}
...
...
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