ReactOS  0.4.14-dev-342-gdc047f9
AfdHelpers.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS API Tests
3  * LICENSE: LGPL-2.1+ (https://spdx.org/licenses/LGPL-2.1+)
4  * PURPOSE: Utility function declarations for calling AFD
5  * COPYRIGHT: Copyright 2015 Thomas Faber (thomas.faber@reactos.org)
6  * Copyright 2019 Pierre Schweitzer (pierre@reactos.org)
7  */
8 
9 #pragma once
10 
13  _Out_ PHANDLE SocketHandle,
14  _In_ int AddressFamily,
15  _In_ int SocketType,
16  _In_ int Protocol);
17 
19 AfdBind(
20  _In_ HANDLE SocketHandle,
21  _In_ const struct sockaddr *Address,
22  _In_ ULONG AddressLength);
23 
26  _In_ HANDLE SocketHandle,
27  _In_ const struct sockaddr *Address,
28  _In_ ULONG AddressLength);
29 
31 AfdSend(
32  _In_ HANDLE SocketHandle,
33  _In_ const void *Buffer,
35 
37 AfdSendTo(
38  _In_ HANDLE SocketHandle,
39  _In_ const void *Buffer,
41  _In_ const struct sockaddr *Address,
42  _In_ ULONG AddressLength);
43 
46  _In_ HANDLE SocketHandle,
48  _In_opt_ PBOOLEAN Boolean,
50  _In_opt_ PLARGE_INTEGER LargeInteger);
51 
54  _In_ HANDLE SocketHandle,
56  _In_opt_ PBOOLEAN Boolean,
58  _In_opt_ PLARGE_INTEGER LargeInteger);
IN PCO_ADDRESS_FAMILY AddressFamily
Definition: ndis.h:1906
NTSTATUS AfdSend(_In_ HANDLE SocketHandle, _In_ const void *Buffer, _In_ ULONG BufferLength)
Definition: AfdHelpers.c:264
LONG NTSTATUS
Definition: precomp.h:26
#define _In_opt_
Definition: no_sal2.h:213
NTSTATUS AfdGetInformation(_In_ HANDLE SocketHandle, _In_ ULONG InformationClass, _In_opt_ PBOOLEAN Boolean, _In_opt_ PULONG Ulong, _In_opt_ PLARGE_INTEGER LargeInteger)
Definition: AfdHelpers.c:447
NTSTATUS AfdSendTo(_In_ HANDLE SocketHandle, _In_ const void *Buffer, _In_ ULONG BufferLength, _In_ const struct sockaddr *Address, _In_ ULONG AddressLength)
Definition: AfdHelpers.c:314
_In_ ULONG BufferLength
Definition: usbdlib.h:225
static WCHAR Address[46]
Definition: ping.c:68
#define _Out_
Definition: no_sal2.h:323
Definition: bufpool.h:45
char * PBOOLEAN
Definition: retypes.h:11
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:414
_In_ USHORT SocketType
Definition: wsk.h:182
#define _In_
Definition: no_sal2.h:204
NTSTATUS AfdConnect(_In_ HANDLE SocketHandle, _In_ const struct sockaddr *Address, _In_ ULONG AddressLength)
Definition: AfdHelpers.c:197
NTSTATUS AfdSetInformation(_In_ HANDLE SocketHandle, _In_ ULONG InformationClass, _In_opt_ PBOOLEAN Boolean, _In_opt_ PULONG Ulong, _In_opt_ PLARGE_INTEGER LargeInteger)
Definition: AfdHelpers.c:388
unsigned int * PULONG
Definition: retypes.h:1
NTSTATUS AfdCreateSocket(_Out_ PHANDLE SocketHandle, _In_ int AddressFamily, _In_ int SocketType, _In_ int Protocol)
Definition: AfdHelpers.c:24
unsigned int ULONG
Definition: retypes.h:1
_In_ FILTER_INFORMATION_CLASS InformationClass
Definition: fltkernel.h:1714
NTSTATUS AfdBind(_In_ HANDLE SocketHandle, _In_ const struct sockaddr *Address, _In_ ULONG AddressLength)
Definition: AfdHelpers.c:134
unsigned long Ulong
Definition: utypes.h:42