ReactOS 0.4.16-dev-311-g9382aa2
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,
15 _In_ int SocketType,
16 _In_ int Protocol);
17
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
32 _In_ HANDLE SocketHandle,
33 _In_ const void *Buffer,
35
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);
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 AfdBind(_In_ HANDLE SocketHandle, _In_ const struct sockaddr *Address, _In_ ULONG AddressLength)
Definition: AfdHelpers.c:134
NTSTATUS AfdSendTo(_In_ HANDLE SocketHandle, _In_ const void *Buffer, _In_ ULONG BufferLength, _In_ const struct sockaddr *Address, _In_ ULONG AddressLength)
Definition: AfdHelpers.c:314
NTSTATUS AfdSend(_In_ HANDLE SocketHandle, _In_ const void *Buffer, _In_ ULONG BufferLength)
Definition: AfdHelpers.c:264
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
NTSTATUS AfdCreateSocket(_Out_ PHANDLE SocketHandle, _In_ int AddressFamily, _In_ int SocketType, _In_ int Protocol)
Definition: AfdHelpers.c:24
NTSTATUS AfdConnect(_In_ HANDLE SocketHandle, _In_ const struct sockaddr *Address, _In_ ULONG AddressLength)
Definition: AfdHelpers.c:197
LONG NTSTATUS
Definition: precomp.h:26
Definition: bufpool.h:45
_In_ FILTER_INFORMATION_CLASS InformationClass
Definition: fltkernel.h:1713
IN PCO_ADDRESS_FAMILY AddressFamily
Definition: ndis.h:1906
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
#define _In_opt_
Definition: no_sal2.h:212
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:455
static WCHAR Address[46]
Definition: ping.c:68
uint32_t * PULONG
Definition: typedefs.h:59
unsigned char * PBOOLEAN
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
unsigned long Ulong
Definition: utypes.h:42
_Must_inspect_result_ _In_ WDFDEVICE _In_ DEVICE_REGISTRY_PROPERTY _In_ ULONG BufferLength
Definition: wdfdevice.h:3771
_In_ USHORT SocketType
Definition: wsk.h:182