[PATCH 2/4] wlanapi: Add a stub for WlanRegisterNotification

Bruno Jesus 00cpxxx at gmail.com
Sun Feb 12 20:55:04 CST 2017


Signed-off-by: Bruno Jesus <00cpxxx at gmail.com>
---
 dlls/wlanapi/main.c       | 10 ++++++++++
 dlls/wlanapi/wlanapi.spec |  2 +-
 include/wlanapi.h         | 12 ++++++++++++
 3 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/dlls/wlanapi/main.c b/dlls/wlanapi/main.c
index 56c5377..bb139a0 100644
--- a/dlls/wlanapi/main.c
+++ b/dlls/wlanapi/main.c
@@ -137,6 +137,16 @@ DWORD WINAPI WlanScan(HANDLE handle, const GUID *guid, const DOT11_SSID *ssid,
     return ERROR_CALL_NOT_IMPLEMENTED;
 }
 
+DWORD WINAPI WlanRegisterNotification(HANDLE handle, DWORD notify_source, BOOL ignore_dup,
+                                      WLAN_NOTIFICATION_CALLBACK callback, void *context,
+                                      void *reserved, DWORD *notify_prev)
+{
+    FIXME("(%p, %d, %d, %p, %p, %p, %p) stub\n",
+          handle, notify_source, ignore_dup, callback, context, reserved, notify_prev);
+
+    return ERROR_CALL_NOT_IMPLEMENTED;
+}
+
 void WINAPI WlanFreeMemory(void *ptr)
 {
     TRACE("(%p)\n", ptr);
diff --git a/dlls/wlanapi/wlanapi.spec b/dlls/wlanapi/wlanapi.spec
index aa3dabf..a630e0a 100644
--- a/dlls/wlanapi/wlanapi.spec
+++ b/dlls/wlanapi/wlanapi.spec
@@ -19,7 +19,7 @@
 @ stub WlanQueryAutoConfigParameter
 @ stub WlanQueryInterface
 @ stub WlanReasonCodeToString
-@ stub WlanRegisterNotification
+@ stdcall WlanRegisterNotification(ptr long long ptr ptr ptr ptr)
 @ stub WlanRenameProfile
 @ stub WlanSaveTemporaryProfile
 @ stdcall WlanScan(ptr ptr ptr ptr ptr)
diff --git a/include/wlanapi.h b/include/wlanapi.h
index f1e302c..f3d3ea6 100644
--- a/include/wlanapi.h
+++ b/include/wlanapi.h
@@ -58,11 +58,23 @@ typedef struct _WLAN_RAW_DATA
     BYTE DataBlob[1];
 } WLAN_RAW_DATA, *PWLAN_RAW_DATA;
 
+typedef struct _WLAN_NOTIFICATION_DATA
+{
+    DWORD NotificationSource;
+    DWORD NotificationCode;
+    GUID InterfaceGuid;
+    DWORD dwDataSize;
+    PVOID pData;
+} WLAN_NOTIFICATION_DATA, *PWLAN_NOTIFICATION_DATA;
+
+typedef void (WINAPI *WLAN_NOTIFICATION_CALLBACK)(WLAN_NOTIFICATION_DATA *, void *);
+
 DWORD WINAPI WlanCloseHandle(HANDLE, void *);
 DWORD WINAPI WlanEnumInterfaces(HANDLE, void *, WLAN_INTERFACE_INFO_LIST **);
 DWORD WINAPI WlanOpenHandle(DWORD, void *, DWORD *, HANDLE *);
 void *WINAPI WlanAllocateMemory(DWORD);
 void WINAPI WlanFreeMemory(void *);
 DWORD WINAPI WlanScan(HANDLE, const GUID *, const DOT11_SSID *, const WLAN_RAW_DATA *, void *);
+DWORD WINAPI WlanRegisterNotification(HANDLE, DWORD, BOOL, WLAN_NOTIFICATION_CALLBACK, void *, void *, DWORD *);
 
 #endif /* _WLAN_WLANAPI_H */
-- 
2.9.3




More information about the wine-patches mailing list