mirror of
https://github.com/reactos/reactos.git
synced 2024-09-08 03:40:17 +00:00
42 lines
922 B
C
42 lines
922 B
C
![]() |
/*
|
||
|
* PROJECT: ReactOS API Tests
|
||
|
* LICENSE: LGPL-2.1+ (https://spdx.org/licenses/LGPL-2.1+)
|
||
|
* PURPOSE: Utility function declarations for calling AFD
|
||
|
* COPYRIGHT: Copyright 2015 Thomas Faber (thomas.faber@reactos.org)
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
NTSTATUS
|
||
|
AfdCreateSocket(
|
||
|
_Out_ PHANDLE SocketHandle,
|
||
|
_In_ int AddressFamily,
|
||
|
_In_ int SocketType,
|
||
|
_In_ int Protocol);
|
||
|
|
||
|
NTSTATUS
|
||
|
AfdBind(
|
||
|
_In_ HANDLE SocketHandle,
|
||
|
_In_ const struct sockaddr *Address,
|
||
|
_In_ ULONG AddressLength);
|
||
|
|
||
|
NTSTATUS
|
||
|
AfdConnect(
|
||
|
_In_ HANDLE SocketHandle,
|
||
|
_In_ const struct sockaddr *Address,
|
||
|
_In_ ULONG AddressLength);
|
||
|
|
||
|
NTSTATUS
|
||
|
AfdSend(
|
||
|
_In_ HANDLE SocketHandle,
|
||
|
_In_ const void *Buffer,
|
||
|
_In_ ULONG BufferLength);
|
||
|
|
||
|
NTSTATUS
|
||
|
AfdSendTo(
|
||
|
_In_ HANDLE SocketHandle,
|
||
|
_In_ const void *Buffer,
|
||
|
_In_ ULONG BufferLength,
|
||
|
_In_ const struct sockaddr *Address,
|
||
|
_In_ ULONG AddressLength);
|