Louis Lenders : iphlpapi: Add stub for NotifyRouteChange2.
Alexandre Julliard
julliard at winehq.org
Mon May 11 16:08:35 CDT 2020
Module: wine
Branch: master
Commit: 62b89ad0a5be0e12e2798b5b3cf25f6029b01be6
URL: https://source.winehq.org/git/wine.git/?a=commit;h=62b89ad0a5be0e12e2798b5b3cf25f6029b01be6
Author: Louis Lenders <xerox.xerox2000x at gmail.com>
Date: Fri May 8 17:59:23 2020 +0200
iphlpapi: Add stub for NotifyRouteChange2.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48775
Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/iphlpapi/iphlpapi.spec | 2 +-
dlls/iphlpapi/iphlpapi_main.c | 12 ++++++++++++
include/netioapi.h | 2 ++
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/dlls/iphlpapi/iphlpapi.spec b/dlls/iphlpapi/iphlpapi.spec
index c5857f2831..ded265f571 100644
--- a/dlls/iphlpapi/iphlpapi.spec
+++ b/dlls/iphlpapi/iphlpapi.spec
@@ -236,7 +236,7 @@
@ stdcall NotifyAddrChange( ptr ptr )
@ stdcall NotifyIpInterfaceChange( long ptr ptr long ptr )
@ stdcall NotifyRouteChange( ptr ptr )
-#@ stub NotifyRouteChange2
+@ stdcall NotifyRouteChange2( long ptr ptr long ptr )
@ stub NotifyRouteChangeEx
#@ stub NotifyStableUnicastIpAddressTable
#@ stub NotifyTeredoPortChange
diff --git a/dlls/iphlpapi/iphlpapi_main.c b/dlls/iphlpapi/iphlpapi_main.c
index e3ce21c44b..e65eff82e2 100644
--- a/dlls/iphlpapi/iphlpapi_main.c
+++ b/dlls/iphlpapi/iphlpapi_main.c
@@ -2817,6 +2817,18 @@ DWORD WINAPI NotifyIpInterfaceChange(ADDRESS_FAMILY family, PIPINTERFACE_CHANGE_
return NO_ERROR;
}
+/******************************************************************
+ * NotifyRouteChange2 (IPHLPAPI.@)
+ */
+DWORD WINAPI NotifyRouteChange2(ADDRESS_FAMILY family, PIPFORWARD_CHANGE_CALLBACK callback, VOID* context,
+ BOOLEAN init_notify, HANDLE* handle)
+{
+ FIXME("(family %d, callback %p, context %p, init_notify %d, handle %p): stub\n",
+ family, callback, context, init_notify, handle);
+ if (handle) *handle = NULL;
+ return NO_ERROR;
+}
+
/******************************************************************
* NotifyRouteChange (IPHLPAPI.@)
diff --git a/include/netioapi.h b/include/netioapi.h
index a41bae0968..7238d527ad 100644
--- a/include/netioapi.h
+++ b/include/netioapi.h
@@ -236,6 +236,8 @@ typedef VOID (WINAPI *PIPINTERFACE_CHANGE_CALLBACK)(PVOID, PMIB_IPINTERFACE_ROW,
typedef VOID (WINAPI *PUNICAST_IPADDRESS_CHANGE_CALLBACK)(PVOID, PMIB_UNICASTIPADDRESS_ROW,
MIB_NOTIFICATION_TYPE);
+typedef VOID (WINAPI *PIPFORWARD_CHANGE_CALLBACK)(VOID*,MIB_IPFORWARD_ROW2*,MIB_NOTIFICATION_TYPE);
+
DWORD WINAPI ConvertInterfaceGuidToLuid(const GUID*,NET_LUID*);
DWORD WINAPI ConvertInterfaceIndexToLuid(NET_IFINDEX,NET_LUID*);
DWORD WINAPI ConvertInterfaceLuidToGuid(const NET_LUID*,GUID*);
More information about the wine-cvs
mailing list