Hello,

this is needed for pcsx2.

Best regards
Oleg Tolmatcev
From d6a31fea98e9d4bace236839e63ea5c9c42b0d3b Mon Sep 17 00:00:00 2001
From: Oleg Tolmatcev <[email protected]>
Date: Sat, 7 Oct 2023 01:12:20 +0200
Subject: [PATCH] headers: add ADDRINFOEX and
 LPLOOKUPSERVICE_COMPLETION_ROUTINE to ws2tcpip.h

---
 mingw-w64-headers/include/ws2tcpip.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/mingw-w64-headers/include/ws2tcpip.h 
b/mingw-w64-headers/include/ws2tcpip.h
index 84195fa5..352c1790 100644
--- a/mingw-w64-headers/include/ws2tcpip.h
+++ b/mingw-w64-headers/include/ws2tcpip.h
@@ -262,6 +262,7 @@ WCHAR *gai_strerrorW(int);
 #include <mstcpip.h>
 
 #if (_WIN32_WINNT >= 0x0600)
+#define ADDRINFOEX __MINGW_NAME_AW(ADDRINFOEX)
 #define PADDRINFOEX __MINGW_NAME_AW(PADDRINFOEX)
 #define GetAddrInfoEx __MINGW_NAME_AW(GetAddrInfoEx)
 #define SetAddrInfoEx __MINGW_NAME_AW(SetAddrInfoEx)
@@ -294,7 +295,11 @@ WCHAR *gai_strerrorW(int);
     struct addrinfoexW *ai_next;
   } ADDRINFOEXW, *PADDRINFOEXW;
 
-typedef PVOID LPLOOKUPSERVICE_COMPLETION_ROUTINE; /*reserved*/
+  typedef void (CALLBACK * LPLOOKUPSERVICE_COMPLETION_ROUTINE)(
+    DWORD dwError,
+    DWORD dwBytes,
+    LPWSAOVERLAPPED lpOverlapped
+  );
 
 WINSOCK_API_LINKAGE int WSAAPI GetAddrInfoExA(PCSTR pName, PCSTR pServiceName, 
DWORD dwNameSpace,
                                              LPGUID lpNspId,const ADDRINFOEXA 
*pHints,PADDRINFOEXA *ppResult,
-- 
2.41.0.windows.1

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to