David Bartley : iphlpapi: Add CancelIPChangeNotify stub.
Alexandre Julliard
julliard at winehq.org
Mon Dec 13 10:43:19 CST 2010
Module: wine
Branch: master
Commit: bf6a20fad39e788638f1c7c9ebc9865a9e0cdf66
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bf6a20fad39e788638f1c7c9ebc9865a9e0cdf66
Author: David Bartley <dtb at google.com>
Date: Sat Dec 11 00:57:24 2010 -0800
iphlpapi: Add CancelIPChangeNotify stub.
---
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 84ed558..d734c39 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 f48470c..823e596 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 b73363d..0a8def5 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,
More information about the wine-cvs
mailing list