ReactOS 0.4.16-dev-336-gb667d82
rnr20lib.h
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS WinSock 2 NSP
4 * FILE: include/reactos/winsock/rnr20lib.h
5 * PURPOSE: WinSock 2 NSP Header
6 */
7
8#ifndef __NSP_H
9#define __NSP_H
10
11/* DEFINES *******************************************************************/
12
13/* Lookup Flags */
14#define DONE 0x01
15#define REVERSE 0x02
16#define LOCAL 0x04
17#define IANA 0x10
18#define LOOPBACK 0x20
19
20/* Protocol Flags */
21#define UDP 0x01
22#define TCP 0x02
23#define ATM 0x04
24
25/* GUID Masks */
26#define NBT_MASK 0x01
27#define DNS_MASK 0x02
28
29/* TYPES *********************************************************************/
30
31typedef struct _RNR_CONTEXT
32{
52
53typedef struct _RNR_TEB_DATA
54{
57
58/* PROTOTYPES ****************************************************************/
59
60/*
61 * proc.c
62 */
66
67/*
68 * oldutil.c
69 */
73 PWCHAR ServiceString,
74 LPGUID ServiceType,
75 PSERVENT *ReverseServent
76);
77
83 IN LPWSASERVICECLASSINFOW ServiceClassInfo
84);
85
89 IN PSERVENT Servent,
90 IN OUT PULONG_PTR BufferPos,
91 IN OUT PULONG BufferFreeSize,
92 IN OUT PULONG BlobSize,
93 IN BOOLEAN Relative
94);
95
96WORD
100);
101
102/*
103 * context.c
104 */
105VOID
106WSPAPI
108
109VOID
110WSPAPI
112
114WSPAPI
116 HANDLE LookupHandle,
117 DWORD dwControlFlags,
119);
120
122WSPAPI
124 IN HANDLE LookupHandle,
126);
127
128VOID
129WSPAPI
131
132/*
133 * util.c
134 */
135PVOID
136WSPAPI
138
139/*
140 * lookup.c
141 */
143WSPAPI
145
147WSPAPI
149
151WSPAPI
153
155WINAPI
157
159WINAPI
161
163WINAPI
165
166/*
167 * init.c
168 */
169VOID
170WSPAPI
172
173VOID
174WSPAPI
176
178WSPAPI
180
181VOID
182WSPAPI
184
185/*
186 * nsp.c
187 */
188VOID
189WSPAPI
191
192INT
193WINAPI
195
196INT
197WINAPI
199 IN LPGUID lpProviderId,
200 IN LPWSASERVICECLASSINFOW lpServiceClassInfo,
201 IN LPWSAQUERYSETW lpqsRegInfo,
202 IN WSAESETSERVICEOP essOperation,
203 IN DWORD dwControlFlags
204);
205
206INT
207WINAPI
209 IN LPGUID lpProviderId,
210 IN LPWSASERVICECLASSINFOW lpServiceClassInfo
211);
212
213INT
214WINAPI
216 IN LPGUID lpProviderId,
217 IN LPGUID lpServiceCallId
218);
219
220INT
221WINAPI
223 IN LPGUID lpProviderId,
224 IN OUT LPDWORD lpdwBufSize,
225 IN OUT LPWSASERVICECLASSINFOW lpServiceClassInfo
226);
227
228INT
229WINAPI
231 LPGUID lpProviderId,
232 LPWSAQUERYSETW lpqsRestrictions,
233 LPWSASERVICECLASSINFOW lpServiceClassInfo,
234 DWORD dwControlFlags,
235 LPHANDLE lphLookup
236);
237
238INT
239WINAPI
241 IN HANDLE hLookup,
242 IN DWORD dwControlFlags,
244 OUT LPWSAQUERYSETW lpqsResults
245);
246
247INT
248WINAPI
250
251INT
252WINAPI
254 IN LPGUID lpProviderId,
255 IN OUT LPNSP_ROUTINE lpsnpRoutines
256);
257
258/* Unchecked yet */
259#define ATM_ADDRESS_LENGTH 20
260#define WS2_INTERNAL_MAX_ALIAS 16
261#define MAX_HOSTNAME_LEN 256
262#define MAXADDRS 16
263
264#endif
265
unsigned char BOOLEAN
Type
Definition: Type.h:7
static WCHAR ServiceName[]
Definition: browser.c:19
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
static WCHAR Address[46]
Definition: ping.c:68
INT WINAPI Dns_NSPCleanup(IN LPGUID lpProviderId)
INT WINAPI Dns_NSPRemoveServiceClass(IN LPGUID lpProviderId, IN LPGUID lpServiceCallId)
PDNS_BLOB WINAPI Rnr_NbtResolveName(IN LPWSTR Name)
PRNR_CONTEXT WSPAPI RnrCtx_Create(IN HANDLE LookupHandle, IN LPWSTR ServiceName)
INT WINAPI Dns_NSPLookupServiceBegin(LPGUID lpProviderId, LPWSAQUERYSETW lpqsRestrictions, LPWSASERVICECLASSINFOW lpServiceClassInfo, DWORD dwControlFlags, LPHANDLE lphLookup)
PDNS_BLOB WSPAPI Rnr_GetHostByAddr(IN PRNR_CONTEXT Context)
struct _RNR_CONTEXT * PRNR_CONTEXT
VOID WSPAPI Rnr_ProcessInit(VOID)
PRNR_CONTEXT WSPAPI RnrCtx_Get(HANDLE LookupHandle, DWORD dwControlFlags, PLONG Instance)
INT WINAPI Dns_NSPStartup(IN LPGUID lpProviderId, IN OUT LPNSP_ROUTINE lpsnpRoutines)
BOOLEAN WINAPI Rnr_CheckIfUseNbt(PRNR_CONTEXT RnrContext)
DWORD WINAPI GetServerAndProtocolsFromString(PWCHAR ServiceString, LPGUID ServiceType, PSERVENT *ReverseServent)
INT WINAPI Dns_NSPGetServiceClassInfo(IN LPGUID lpProviderId, IN OUT LPDWORD lpdwBufSize, IN OUT LPWSASERVICECLASSINFOW lpServiceClassInfo)
VOID WSPAPI Rnr_ProcessCleanup(VOID)
PDNS_BLOB WINAPI Rnr_NbtResolveAddr(IN IN_ADDR Address)
PVOID WSPAPI Temp_AllocZero(IN DWORD Size)
BOOLEAN WSPAPI Rnr_ThreadInit(VOID)
struct _RNR_CONTEXT RNR_CONTEXT
PDNS_BLOB WSPAPI Rnr_DoHostnameLookup(IN PRNR_CONTEXT Context)
VOID WSPAPI Nsp_GlobalCleanup(VOID)
INT WINAPI Dns_NSPInstallServiceClass(IN LPGUID lpProviderId, IN LPWSASERVICECLASSINFOW lpServiceClassInfo)
INT WINAPI Dns_NSPLookupServiceNext(IN HANDLE hLookup, IN DWORD dwControlFlags, IN OUT LPDWORD lpdwBufferLength, OUT LPWSAQUERYSETW lpqsResults)
PSERVENT WSPAPI CopyServEntry(IN PSERVENT Servent, IN OUT PULONG_PTR BufferPos, IN OUT PULONG BufferFreeSize, IN OUT PULONG BlobSize, IN BOOLEAN Relative)
VOID WSPAPI Rnr_ThreadCleanup(VOID)
PDNS_BLOB WSPAPI Rnr_DoDnsLookup(IN PRNR_CONTEXT Context)
VOID WSPAPI RnrCtx_DecInstance(IN PRNR_CONTEXT RnrContext)
VOID WSPAPI RnrCtx_Release(PRNR_CONTEXT RnrContext)
struct _RNR_TEB_DATA RNR_TEB_DATA
struct _RNR_TEB_DATA * PRNR_TEB_DATA
DWORD WINAPI FetchPortFromClassInfo(IN DWORD Type, IN LPGUID Guid, IN LPWSASERVICECLASSINFOW ServiceClassInfo)
INT WINAPI Dns_NSPLookupServiceEnd(IN HANDLE hLookup)
VOID WSPAPI RnrCtx_ListCleanup(VOID)
BOOLEAN WINAPI RNRPROV_SockEnterApi(VOID)
WORD WINAPI GetDnsQueryTypeFromGuid(IN LPGUID Guid)
INT WINAPI Dns_NSPSetService(IN LPGUID lpProviderId, IN LPWSASERVICECLASSINFOW lpServiceClassInfo, IN LPWSAQUERYSETW lpqsRegInfo, IN WSAESETSERVICEOP essOperation, IN DWORD dwControlFlags)
static LPWSAQUERYSETW
Definition: sock.c:90
Definition: nspapi.h:57
Definition: typedefs.h:120
DWORD Instance
Definition: rnr20lib.h:38
WCHAR ServiceName[1]
Definition: rnr20lib.h:50
DWORD RnrId
Definition: rnr20lib.h:40
DWORD UdpPort
Definition: rnr20lib.h:44
PDNS_BLOB CachedSaBlob
Definition: rnr20lib.h:35
HANDLE Handle
Definition: rnr20lib.h:34
DWORD RefCount
Definition: rnr20lib.h:37
LIST_ENTRY ListEntry
Definition: rnr20lib.h:33
GUID lpProviderId
Definition: rnr20lib.h:49
DWORD RrType
Definition: rnr20lib.h:42
DWORD TcpPort
Definition: rnr20lib.h:45
DWORD LookupFlags
Definition: rnr20lib.h:39
BLOB CachedBlob
Definition: rnr20lib.h:47
DWORD dwNameSpace
Definition: rnr20lib.h:41
DWORD ProtocolFlags
Definition: rnr20lib.h:46
DWORD dwControlFlags
Definition: rnr20lib.h:43
GUID lpServiceClassId
Definition: rnr20lib.h:48
DWORD Signature
Definition: rnr20lib.h:36
ULONG Foo
Definition: rnr20lib.h:55
Definition: tcpip.h:126
uint32_t * PULONG_PTR
Definition: typedefs.h:65
uint32_t * PULONG
Definition: typedefs.h:59
uint32_t * LPDWORD
Definition: typedefs.h:59
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
int32_t * PLONG
Definition: typedefs.h:58
uint16_t * PWCHAR
Definition: typedefs.h:56
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_DEVICE_PROPERTY_DATA _In_ DEVPROPTYPE _In_ ULONG Size
Definition: wdfdevice.h:4533
_Must_inspect_result_ _In_ WDFOBJECT _In_ CONST GUID * Guid
Definition: wdfobject.h:762
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_WMI_INSTANCE_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_opt_ WDFWMIINSTANCE * Instance
Definition: wdfwmi.h:481
#define WINAPI
Definition: msvc.h:6
_In_ _In_opt_ _Out_writes_bytes_to_opt_ lpdwBufferLength _Inout_ LPDWORD lpdwBufferLength
Definition: winhttp.h:675
enum _WSAESETSERVICEOP WSAESETSERVICEOP
#define WSPAPI
Definition: ws2spi.h:39
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184