17 ULONG OrigReceiveSize, OrigSendSize, ReceiveSize, SendSize;
24 ok(OrigReceiveSize == 0x1000 || OrigReceiveSize == 0x2000,
"Invalid size: %lu\n", OrigReceiveSize);
27 ok(OrigSendSize == 0x1000 || OrigSendSize == 0x2000,
"Invalid size: %lu\n", OrigSendSize);
36 ReceiveSize = (
ULONG)-1L;
39 SendSize = (
ULONG)-1L;
45 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
48 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
50 ReceiveSize = OrigReceiveSize;
53 SendSize = OrigSendSize;
67 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
70 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
79 ReceiveSize = (
ULONG)-1L;
82 SendSize = (
ULONG)-1L;
88 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
91 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
93 ReceiveSize = OrigReceiveSize;
96 SendSize = OrigSendSize;
110 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
113 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
124 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
127 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
129 ReceiveSize = (
ULONG)-1L;
132 SendSize = (
ULONG)-1L;
138 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
141 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
143 ReceiveSize = OrigReceiveSize + 1;
146 SendSize = OrigSendSize + 1;
152 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
155 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
157 ReceiveSize = OrigReceiveSize - 1;
160 SendSize = OrigSendSize - 1;
166 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
169 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
181 ULONG OrigReceiveSize, OrigSendSize, ReceiveSize, SendSize;
188 ok(OrigReceiveSize == 0x1000 || OrigReceiveSize == 0x2000,
"Invalid size: %lu\n", OrigReceiveSize);
191 ok(OrigSendSize == 0x1000 || OrigSendSize == 0x2000,
"Invalid size: %lu\n", OrigSendSize);
202 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
205 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
207 ReceiveSize = (
ULONG)-1L;
210 SendSize = (
ULONG)-1L;
216 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
219 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
221 ReceiveSize = OrigReceiveSize;
224 SendSize = OrigSendSize;
238 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
241 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
252 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
255 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
257 ReceiveSize = (
ULONG)-1L;
260 SendSize = (
ULONG)-1L;
266 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
269 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
271 ReceiveSize = OrigReceiveSize + 1;
274 SendSize = OrigSendSize + 1;
280 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
283 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
285 ReceiveSize = OrigReceiveSize - 1;
288 SendSize = OrigSendSize - 1;
294 ok(ReceiveSize == OrigReceiveSize,
"Invalid size: %lu %lu\n", ReceiveSize, OrigReceiveSize);
297 ok(SendSize == OrigSendSize,
"Invalid size: %lu %lu\n", SendSize, OrigSendSize);
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)
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
static void TestUdp(void)
static void TestTcp(void)