Module: wine Branch: stable Commit: fc8dcd39d8b53d83b04c3a744e18776b9f0daf3d URL: http://source.winehq.org/git/wine.git/?a=commit;h=fc8dcd39d8b53d83b04c3a744e...
Author: David Bartley dtb@google.com Date: Sat Dec 11 00:57:24 2010 -0800
iphlpapi: Add CancelIPChangeNotify stub. (cherry picked from commit bf6a20fad39e788638f1c7c9ebc9865a9e0cdf66)
---
dlls/iphlpapi/iphlpapi.spec | 1 + dlls/iphlpapi/iphlpapi_main.c | 24 ++++++++++++++++++++++++ dlls/iphlpapi/tests/iphlpapi.c | 1 + include/iphlpapi.h | 2 ++ 4 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/dlls/iphlpapi/iphlpapi.spec b/dlls/iphlpapi/iphlpapi.spec index 794ece2..d6f33d7 100644 --- a/dlls/iphlpapi/iphlpapi.spec +++ b/dlls/iphlpapi/iphlpapi.spec @@ -6,6 +6,7 @@ @ stdcall AllocateAndGetIpNetTableFromStack( ptr long long long ) @ stdcall AllocateAndGetTcpTableFromStack( ptr long long long ) @ stdcall AllocateAndGetUdpTableFromStack( ptr long long long ) +@ stdcall CancelIPChangeNotify( ptr ) @ stdcall CreateIpForwardEntry( ptr ) @ stdcall CreateIpNetEntry( ptr ) @ stdcall CreateProxyArpEntry( long long long ) diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c index 493fe3f..53cad0e 100644 --- a/dlls/iphlpapi/iphlpapi_main.c +++ b/dlls/iphlpapi/iphlpapi_main.c @@ -200,6 +200,30 @@ DWORD WINAPI AllocateAndGetIpAddrTableFromStack(PMIB_IPADDRTABLE *ppIpAddrTable,
/****************************************************************** + * CancelIPChangeNotify (IPHLPAPI.@) + * + * Cancel a previous notification created by NotifyAddrChange or + * NotifyRouteChange. + * + * PARAMS + * overlapped [In] overlapped structure that notifies the caller + * + * RETURNS + * Success: TRUE + * Failure: FALSE + * + * FIXME + * Stub, returns FALSE. + */ +BOOL WINAPI CancelIPChangeNotify(LPOVERLAPPED overlapped) +{ + FIXME("(overlapped %p): stub\n", overlapped); + return FALSE; +} + + + +/****************************************************************** * CreateIpForwardEntry (IPHLPAPI.@) * * Create a route in the local computer's IP table. diff --git a/dlls/iphlpapi/tests/iphlpapi.c b/dlls/iphlpapi/tests/iphlpapi.c index 2410aca..8e03863 100644 --- a/dlls/iphlpapi/tests/iphlpapi.c +++ b/dlls/iphlpapi/tests/iphlpapi.c @@ -799,6 +799,7 @@ static void testGetPerAdapterInfo(void) /* still-to-be-tested 2K-onward functions: AddIPAddress +CancelIPChangeNotify CreateProxyArpEntry DeleteIPAddress DeleteProxyArpEntry diff --git a/include/iphlpapi.h b/include/iphlpapi.h index 1e64a18..0f7eba6 100644 --- a/include/iphlpapi.h +++ b/include/iphlpapi.h @@ -111,6 +111,8 @@ DWORD WINAPI NotifyAddrChange(PHANDLE Handle, LPOVERLAPPED overlapped);
DWORD WINAPI NotifyRouteChange(PHANDLE Handle, LPOVERLAPPED overlapped);
+BOOL WINAPI CancelIPChangeNotify(LPOVERLAPPED overlapped); + DWORD WINAPI GetAdapterIndex(IN LPWSTR AdapterName, OUT PULONG IfIndex);
DWORD WINAPI AddIPAddress(IPAddr Address, IPMask IpMask, DWORD IfIndex,