ReactOS  0.4.14-dev-323-g6fe6a88
helpers.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS Ancillary Function Driver DLL
4  * FILE: dll/win32/msafd/include/helpers.h
5  * PURPOSE: Definitions for helper DLL management
6  */
7 #ifndef __HELPERS_H
8 #define __HELPERS_H
9 
10 //#include <msafd.h>
11 
12 typedef struct _HELPER_DATA {
36 
38  PWSTR TransportName,
40  PHELPER_DATA *HelperDllData
41 );
42 
44  PWSTR TransportName,
46 );
47 
49  PWSTR *TransportList
50 );
51 
55  INT SocketType,
57 );
58 
59 int SockGetTdiName(
62  PINT Protocol,
63  GROUP Group,
64  DWORD Flags,
65  PUNICODE_STRING TransportName,
66  PVOID *HelperDllContext,
67  PHELPER_DATA *HelperDllData,
69 );
70 
71 #endif /* __HELPERS_H */
72 
73 /* EOF */
PWSH_GET_WILDCARD_SOCKADDR WSHGetWildcardSockaddr
Definition: helpers.h:29
WCHAR TransportName[1]
Definition: helpers.h:34
INT(WINAPI * PWSH_ADDRESS_TO_STRING)(LPSOCKADDR, INT, LPWSAPROTOCOL_INFOW, LPWSTR, LPDWORD)
Definition: wsahelp.h:67
IN PCO_ADDRESS_FAMILY AddressFamily
Definition: ndis.h:1906
int SockLoadHelperDll(PWSTR TransportName, PWINSOCK_MAPPING Mapping, PHELPER_DATA *HelperDllData)
Definition: helpers.c:298
INT(WINAPI * PWSH_STRING_TO_ADDRESS)(LPWSTR, DWORD, LPWSAPROTOCOL_INFOW, LPSOCKADDR, LPDWORD)
Definition: wsahelp.h:84
PWSH_GET_BROADCAST_SOCKADDR WSHGetBroadcastSockaddr
Definition: helpers.h:30
PWSH_JOIN_LEAF WSHJoinLeaf
Definition: helpers.h:24
int SockLoadTransportMapping(PWSTR TransportName, PWINSOCK_MAPPING *Mapping)
Definition: helpers.c:161
uint16_t * PWSTR
Definition: typedefs.h:54
_In_opt_ PSID Group
Definition: rtlfuncs.h:1606
static PVOID Mapping[EMS_PHYSICAL_PAGES]
Definition: emsdrv.c:41
INT(WINAPI * PWSH_IOCTL)(PVOID, SOCKET, HANDLE, HANDLE, DWORD, LPVOID, DWORD, LPVOID, DWORD, LPDWORD, LPWSAOVERLAPPED, LPWSAOVERLAPPED_COMPLETION_ROUTINE, LPBOOL)
Definition: wsahelp.h:76
INT(WINAPI * PWSH_OPEN_SOCKET)(PINT, PINT, PINT, PUNICODE_STRING, PVOID, PDWORD)
Definition: wsahelp.h:81
int SockLoadTransportList(PWSTR *TransportList)
Definition: helpers.c:232
int32_t INT
Definition: typedefs.h:56
INT(WINAPI * PWSH_GET_SOCKET_INFORMATION)(PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, LPINT)
Definition: wsahelp.h:72
HANDLE hInstance
Definition: helpers.h:15
INT MinWSAddressLength
Definition: helpers.h:16
INT(WINAPI * PWSH_GET_BROADCAST_SOCKADDR)(PVOID, PSOCKADDR, PINT)
Definition: wsahelp.h:69
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
PWINSOCK_MAPPING Mapping
Definition: helpers.h:21
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
PWSH_STRING_TO_ADDRESS WSHStringToAddress
Definition: helpers.h:32
INT MaxWSAddressLength
Definition: helpers.h:17
unsigned char BOOLEAN
LIST_ENTRY Helpers
Definition: helpers.h:13
PWSH_GET_SOCKADDR_TYPE WSHGetSockaddrType
Definition: helpers.h:28
BOOLEAN UseDelayedAcceptance
Definition: helpers.h:20
PWSH_OPEN_SOCKET WSHOpenSocket
Definition: helpers.h:22
struct _HELPER_DATA HELPER_DATA
int * PINT
Definition: windef.h:177
PWSH_OPEN_SOCKET2 WSHOpenSocket2
Definition: helpers.h:23
__wchar_t WCHAR
Definition: xmlstorage.h:180
int SockGetTdiName(PINT AddressFamily, PINT SocketType, PINT Protocol, GROUP Group, DWORD Flags, PUNICODE_STRING TransportName, PVOID *HelperDllContext, PHELPER_DATA *HelperDllData, PDWORD Events)
Definition: helpers.c:22
unsigned int GROUP
Definition: winsock2.h:640
PWSH_NOTIFY WSHNotify
Definition: helpers.h:25
unsigned long DWORD
Definition: ntddk_ex.h:95
PWSH_ADDRESS_TO_STRING WSHAddressToString
Definition: helpers.h:31
PWSH_GET_SOCKET_INFORMATION WSHGetSocketInformation
Definition: helpers.h:26
INT MinTDIAddressLength
Definition: helpers.h:18
INT(WINAPI * PWSH_OPEN_SOCKET2)(PINT, PINT, PINT, GROUP, DWORD, PUNICODE_STRING, PVOID *, PDWORD)
Definition: wsahelp.h:82
Definition: typedefs.h:117
_In_ USHORT SocketType
Definition: wsk.h:182
PWSH_IOCTL WSHIoctl
Definition: helpers.h:33
HANDLE Events[2]
Definition: schedsvc.c:40
PWSH_SET_SOCKET_INFORMATION WSHSetSocketInformation
Definition: helpers.h:27
struct _HELPER_DATA * PHELPER_DATA
DWORD * PDWORD
Definition: pedump.c:68
INT(WINAPI * PWSH_JOIN_LEAF)(PVOID, SOCKET, HANDLE, HANDLE, PVOID, SOCKET, PSOCKADDR, DWORD, LPWSABUF, LPWSABUF, LPQOS, LPQOS, DWORD)
Definition: wsahelp.h:78
INT(WINAPI * PWSH_GET_SOCKADDR_TYPE)(PSOCKADDR, DWORD, PSOCKADDR_INFO)
Definition: wsahelp.h:71
INT MaxTDIAddressLength
Definition: helpers.h:19
BOOL SockIsTripleInMapping(PWINSOCK_MAPPING Mapping, INT AddressFamily, INT SocketType, INT Protocol)
Definition: helpers.c:490
INT(WINAPI * PWSH_NOTIFY)(PVOID, SOCKET, HANDLE, HANDLE, DWORD)
Definition: wsahelp.h:80
INT(WINAPI * PWSH_SET_SOCKET_INFORMATION)(PVOID, SOCKET, HANDLE, HANDLE, INT, INT, PCHAR, INT)
Definition: wsahelp.h:83
INT(WINAPI * PWSH_GET_WILDCARD_SOCKADDR)(PVOID, PSOCKADDR, PINT)
Definition: wsahelp.h:73
LONG RefCount
Definition: helpers.h:14