aboutsummaryrefslogtreecommitdiff
path: root/core/sys/windows
diff options
context:
space:
mode:
authorFourteenBrush <74827262+FourteenBrush@users.noreply.github.com>2025-08-31 23:52:00 +0200
committerGitHub <noreply@github.com>2025-08-31 23:52:00 +0200
commit10b7bba25daa7f3998472ea351cf63620bef3e08 (patch)
tree01b6bd8995023526e4f25b62d90e2a2a1014bca4 /core/sys/windows
parent3ff58e00e438c64cc6ce94b882c00833840e1922 (diff)
Add `LPFN_GETACCEPTEXSOCKADDRS` to ws2_32.odin
Diffstat (limited to 'core/sys/windows')
-rw-r--r--core/sys/windows/ws2_32.odin13
1 files changed, 12 insertions, 1 deletions
diff --git a/core/sys/windows/ws2_32.odin b/core/sys/windows/ws2_32.odin
index cb1071d9e..0d1f477c3 100644
--- a/core/sys/windows/ws2_32.odin
+++ b/core/sys/windows/ws2_32.odin
@@ -82,6 +82,17 @@ Example Load:
}
*/
+LPFN_GETACCEPTEXSOCKADDRS :: #type proc "system" (
+ lpOutputBuffer: PVOID,
+ dwReceiveDataLength: DWORD,
+ dwLocalAddressLength: DWORD,
+ dwRemoteAddressLength: DWORD,
+ LocalSockaddr: ^^sockaddr,
+ LocalSockaddrLength: LPINT,
+ RemoteSockaddr: ^^sockaddr,
+ RemoteSockaddrLength: LPINT,
+)
+
foreign import ws2_32 "system:Ws2_32.lib"
@(default_calling_convention="system")
foreign ws2_32 {
@@ -248,4 +259,4 @@ foreign ws2_32 {
// [MS-Docs](https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-htons)
// Prefer using endian-specific integers instead, https://odin-lang.org/docs/overview/#basic-types
htons :: proc(hostshort: c_ushort) -> c_ushort ---
-} \ No newline at end of file
+}