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
72ef8729
Commit
72ef8729
authored
Oct 13, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Implement GetAdapterIndex.
parent
bceab86d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+13
-6
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
72ef8729
...
...
@@ -625,15 +625,22 @@ DWORD WINAPI FlushIpNetTable(DWORD dwIfIndex)
* RETURNS
* Success: NO_ERROR
* Failure: error code from winerror.h
*
* FIXME
* Stub, returns ERROR_NOT_SUPPORTED.
*/
DWORD
WINAPI
GetAdapterIndex
(
LPWSTR
AdapterName
,
PULONG
IfIndex
)
{
FIXME
(
"(AdapterName %p, IfIndex %p): stub
\n
"
,
AdapterName
,
IfIndex
);
/* FIXME: implement using getInterfaceIndexByName */
return
ERROR_NOT_SUPPORTED
;
char
adapterName
[
MAX_ADAPTER_NAME
];
int
i
;
DWORD
ret
;
TRACE
(
"(AdapterName %p, IfIndex %p)
\n
"
,
AdapterName
,
IfIndex
);
/* The adapter name is guaranteed not to have any unicode characters, so
* this translation is never lossy */
for
(
i
=
0
;
i
<
sizeof
(
adapterName
)
-
1
&&
AdapterName
[
i
];
i
++
)
adapterName
[
i
]
=
(
char
)
AdapterName
[
i
];
adapterName
[
i
]
=
'\0'
;
ret
=
getInterfaceIndexByName
(
adapterName
,
IfIndex
);
TRACE
(
"returning %d
\n
"
,
ret
);
return
ret
;
}
...
...
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