mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
Remove WIN16 version of WSAOVERLAPPED. Use LPWSAOVERLAPPED_COMPLETION_ROUTINE
This commit is contained in:
parent
370be12652
commit
5d14590ed1
@ -1421,8 +1421,8 @@ pub fn WSAIoctl(
|
|||||||
dwIoControlCode: DWORD,
|
dwIoControlCode: DWORD,
|
||||||
inBuffer: ?[]const u8,
|
inBuffer: ?[]const u8,
|
||||||
outBuffer: []u8,
|
outBuffer: []u8,
|
||||||
overlapped: ?*ws2_32.WSAOVERLAPPED,
|
overlapped: ?*OVERLAPPED,
|
||||||
completionRoutine: ?ws2_32.WSAOVERLAPPED_COMPLETION_ROUTINE,
|
completionRoutine: ?ws2_32.LPWSAOVERLAPPED_COMPLETION_ROUTINE,
|
||||||
) !DWORD {
|
) !DWORD {
|
||||||
var bytes: DWORD = undefined;
|
var bytes: DWORD = undefined;
|
||||||
switch (ws2_32.WSAIoctl(
|
switch (ws2_32.WSAIoctl(
|
||||||
|
|||||||
@ -1074,14 +1074,6 @@ pub const WSANETWORKEVENTS = extern struct {
|
|||||||
iErrorCode: [10]i32,
|
iErrorCode: [10]i32,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const WSAOVERLAPPED = extern struct {
|
|
||||||
Internal: DWORD,
|
|
||||||
InternalHigh: DWORD,
|
|
||||||
Offset: DWORD,
|
|
||||||
OffsetHigh: DWORD,
|
|
||||||
hEvent: ?WSAEVENT,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const addrinfo = addrinfoa;
|
pub const addrinfo = addrinfoa;
|
||||||
|
|
||||||
pub const addrinfoa = extern struct {
|
pub const addrinfoa = extern struct {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user