13{
17 ULONG OrigReceiveSize, OrigSendSize, ReceiveSize, SendSize;
18
21
24 ok(OrigReceiveSize == 0x1000 || OrigReceiveSize == 0x2000,
"Invalid size: %lu\n", OrigReceiveSize);
27 ok(OrigSendSize == 0x1000 || OrigSendSize == 0x2000,
"Invalid size: %lu\n", OrigSendSize);
28
29 ReceiveSize = 0;
32 SendSize = 0;
35
36 ReceiveSize = (
ULONG)-1L;
39 SendSize = (
ULONG)-1L;
42
45 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
48 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
49
50 ReceiveSize = OrigReceiveSize;
53 SendSize = OrigSendSize;
56
61
64
67 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
70 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
71
72 ReceiveSize = 0;
75 SendSize = 0;
78
79 ReceiveSize = (
ULONG)-1L;
82 SendSize = (
ULONG)-1L;
85
88 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
91 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
92
93 ReceiveSize = OrigReceiveSize;
96 SendSize = OrigSendSize;
99
104
107
110 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
113 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
114
115 ReceiveSize = 0;
118 SendSize = 0;
121
124 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
127 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
128
129 ReceiveSize = (
ULONG)-1L;
132 SendSize = (
ULONG)-1L;
135
138 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
141 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
142
143 ReceiveSize = OrigReceiveSize + 1;
146 SendSize = OrigSendSize + 1;
149
152 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
155 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
156
157 ReceiveSize = OrigReceiveSize - 1;
160 SendSize = OrigSendSize - 1;
163
166 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
169 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
170
172}
NTSTATUS AfdGetInformation(_In_ HANDLE SocketHandle, _In_ ULONG InformationClass, _In_opt_ PBOOLEAN Boolean, _In_opt_ PULONG Ulong, _In_opt_ PLARGE_INTEGER LargeInteger)
NTSTATUS AfdBind(_In_ HANDLE SocketHandle, _In_ const struct sockaddr *Address, _In_ ULONG AddressLength)
NTSTATUS AfdSetInformation(_In_ HANDLE SocketHandle, _In_ ULONG InformationClass, _In_opt_ PBOOLEAN Boolean, _In_opt_ PULONG Ulong, _In_opt_ PLARGE_INTEGER LargeInteger)
NTSTATUS AfdConnect(_In_ HANDLE SocketHandle, _In_ const struct sockaddr *Address, _In_ ULONG AddressLength)
ULONG WSAAPI inet_addr(IN CONST CHAR FAR *cp)
static NTSTATUS NTAPI AfdCreateSocket(PDEVICE_OBJECT DeviceObject, PIRP Irp, PIO_STACK_LOCATION IrpSp)
GLenum const GLvoid * addr
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
#define AFD_INFO_SEND_WINDOW_SIZE
#define AFD_INFO_RECEIVE_WINDOW_SIZE
#define STATUS_INVALID_PARAMETER