ReactOS 0.4.16-dev-297-gc569aee
handler.c
Go to the documentation of this file.
1/*
2 * DESCRIPTION: Default TDI event handlers.
3 */
4
5#include "precomp.h"
6
7#define NDEBUG
8#include <debug.h>
9
10/*
11 * ClientEventChainedReceiveDatagram
12 *
13 * @unimplemented
14 */
18 IN PVOID TdiEventContext,
19 IN LONG SourceAddressLength,
21 IN LONG OptionsLength,
23 IN ULONG ReceiveDatagramFlags,
24 IN ULONG ReceiveDatagramLength,
26 IN PMDL Tsdu,
27 IN PVOID TsduDescriptor
28 )
29{
32}
33
34
35/*
36 * ClientEventChainedReceiveExpedited
37 *
38 * @unimplemented
39 */
43 IN PVOID TdiEventContext,
44 IN CONNECTION_CONTEXT ConnectionContext,
45 IN ULONG ReceiveFlags,
46 IN ULONG ReceiveLength,
48 IN PMDL Tsdu,
49 IN PVOID TsduDescriptor
50 )
51{
54}
55
56
57/*
58 * ClientEventChainedReceive
59 *
60 * @unimplemented
61 */
65 IN PVOID TdiEventContext,
66 IN CONNECTION_CONTEXT ConnectionContext,
67 IN ULONG ReceiveFlags,
68 IN ULONG ReceiveLength,
70 IN PMDL Tsdu,
71 IN PVOID TsduDescriptor
72 )
73{
76}
77
78
79/*
80 * ClientEventConnect
81 *
82 * @unimplemented
83 */
87 IN PVOID TdiEventContext,
88 IN LONG RemoteAddressLength,
90 IN LONG UserDataLength,
92 IN LONG OptionsLength,
94 OUT CONNECTION_CONTEXT * ConnectionContext,
95 OUT PIRP * AcceptIrp
96 )
97{
100}
101
102
103/*
104 * ClientEventDisconnect
105 *
106 * @unimplemented
107 */
109NTAPI
111 IN PVOID TdiEventContext,
112 IN CONNECTION_CONTEXT ConnectionContext,
113 IN LONG DisconnectDataLength,
114 IN PVOID DisconnectData,
115 IN LONG DisconnectInformationLength,
116 IN PVOID DisconnectInformation,
117 IN ULONG DisconnectFlags
118 )
119{
122}
123
124
125/*
126 * ClientEventError
127 *
128 * @unimplemented
129 */
131NTAPI
133 IN PVOID TdiEventContext,
135 )
136{
139}
140
141
142/*
143 * ClientEventReceiveDatagram
144 *
145 * @unimplemented
146 */
148NTAPI
150 IN PVOID TdiEventContext,
151 IN LONG SourceAddressLength,
153 IN LONG OptionsLength,
155 IN ULONG ReceiveDatagramFlags,
156 IN ULONG BytesIndicated,
157 IN ULONG BytesAvailable,
158 OUT ULONG * BytesTaken,
159 IN PVOID Tsdu,
160 OUT PIRP * IoRequestPacket
161 )
162{
165}
166
167
168/*
169 * ClientEventReceiveExpedited
170 *
171 * @unimplemented
172 */
174NTAPI
176 IN PVOID TdiEventContext,
177 IN CONNECTION_CONTEXT ConnectionContext,
178 IN ULONG ReceiveFlags,
179 IN ULONG BytesIndicated,
180 IN ULONG BytesAvailable,
181 OUT ULONG * BytesTaken,
182 IN PVOID Tsdu,
183 OUT PIRP * IoRequestPacket
184 )
185{
188}
189
190
191/*
192 * ClientEventReceive
193 *
194 * @unimplemented
195 */
197NTAPI
199 IN PVOID TdiEventContext,
200 IN CONNECTION_CONTEXT ConnectionContext,
201 IN ULONG ReceiveFlags,
202 IN ULONG BytesIndicated,
203 IN ULONG BytesAvailable,
204 OUT ULONG * BytesTaken,
205 IN PVOID Tsdu,
206 OUT PIRP * IoRequestPacket
207 )
208{
211}
212
213
214/*
215 * ClientEventSendPossible
216 *
217 * @unimplemented
218 */
220NTAPI
222 IN PVOID TdiEventContext,
223 IN PVOID ConnectionContext,
224 IN ULONG BytesAvailable
225 )
226{
229}
230
232NTAPI
234 _In_ PTDI_CLIENT_INTERFACE_INFO ClientInterfaceInfo,
237{
240}
241
243NTAPI
246{
249}
250
251/* EOF */
LONG NTSTATUS
Definition: precomp.h:26
#define UNIMPLEMENTED
Definition: ntoskrnl.c:15
_In_ PFCB _In_ LONGLONG StartingOffset
Definition: cdprocs.h:291
#define STATUS_NOT_IMPLEMENTED
Definition: d3dkmdt.h:42
Status
Definition: gdiplustypes.h:25
NTSTATUS NTAPI TdiDefaultChainedReceiveHandler(IN PVOID TdiEventContext, IN CONNECTION_CONTEXT ConnectionContext, IN ULONG ReceiveFlags, IN ULONG ReceiveLength, IN ULONG StartingOffset, IN PMDL Tsdu, IN PVOID TsduDescriptor)
Definition: handler.c:64
NTSTATUS NTAPI TdiDefaultDisconnectHandler(IN PVOID TdiEventContext, IN CONNECTION_CONTEXT ConnectionContext, IN LONG DisconnectDataLength, IN PVOID DisconnectData, IN LONG DisconnectInformationLength, IN PVOID DisconnectInformation, IN ULONG DisconnectFlags)
Definition: handler.c:110
NTSTATUS NTAPI TdiDeregisterPnPHandlers(_In_ HANDLE BindingHandle)
Definition: handler.c:244
TDI_STATUS NTAPI TdiDefaultSendPossibleHandler(IN PVOID TdiEventContext, IN PVOID ConnectionContext, IN ULONG BytesAvailable)
Definition: handler.c:221
NTSTATUS NTAPI TdiDefaultChainedRcvExpeditedHandler(IN PVOID TdiEventContext, IN CONNECTION_CONTEXT ConnectionContext, IN ULONG ReceiveFlags, IN ULONG ReceiveLength, IN ULONG StartingOffset, IN PMDL Tsdu, IN PVOID TsduDescriptor)
Definition: handler.c:42
NTSTATUS NTAPI TdiRegisterPnPHandlers(_In_ PTDI_CLIENT_INTERFACE_INFO ClientInterfaceInfo, _In_ ULONG InterfaceInfoSize, _Out_ HANDLE *BindingHandle)
Definition: handler.c:233
NTSTATUS NTAPI TdiDefaultChainedRcvDatagramHandler(IN PVOID TdiEventContext, IN LONG SourceAddressLength, IN PVOID SourceAddress, IN LONG OptionsLength, IN PVOID Options, IN ULONG ReceiveDatagramFlags, IN ULONG ReceiveDatagramLength, IN ULONG StartingOffset, IN PMDL Tsdu, IN PVOID TsduDescriptor)
Definition: handler.c:17
NTSTATUS NTAPI TdiDefaultRcvDatagramHandler(IN PVOID TdiEventContext, IN LONG SourceAddressLength, IN PVOID SourceAddress, IN LONG OptionsLength, IN PVOID Options, IN ULONG ReceiveDatagramFlags, IN ULONG BytesIndicated, IN ULONG BytesAvailable, OUT ULONG *BytesTaken, IN PVOID Tsdu, OUT PIRP *IoRequestPacket)
Definition: handler.c:149
NTSTATUS NTAPI TdiDefaultReceiveHandler(IN PVOID TdiEventContext, IN CONNECTION_CONTEXT ConnectionContext, IN ULONG ReceiveFlags, IN ULONG BytesIndicated, IN ULONG BytesAvailable, OUT ULONG *BytesTaken, IN PVOID Tsdu, OUT PIRP *IoRequestPacket)
Definition: handler.c:198
TDI_STATUS NTAPI TdiDefaultRcvExpeditedHandler(IN PVOID TdiEventContext, IN CONNECTION_CONTEXT ConnectionContext, IN ULONG ReceiveFlags, IN ULONG BytesIndicated, IN ULONG BytesAvailable, OUT ULONG *BytesTaken, IN PVOID Tsdu, OUT PIRP *IoRequestPacket)
Definition: handler.c:175
NTSTATUS NTAPI TdiDefaultErrorHandler(IN PVOID TdiEventContext, IN NTSTATUS Status)
Definition: handler.c:132
NTSTATUS NTAPI TdiDefaultConnectHandler(IN PVOID TdiEventContext, IN LONG RemoteAddressLength, IN PVOID RemoteAddress, IN LONG UserDataLength, IN PVOID UserData, IN LONG OptionsLength, IN PVOID Options, OUT CONNECTION_CONTEXT *ConnectionContext, OUT PIRP *AcceptIrp)
Definition: handler.c:86
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
long LONG
Definition: pedump.c:60
LONG TDI_STATUS
Definition: tdi.h:36
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1147
_In_ ULONG InterfaceInfoSize
Definition: tdikrnl.h:1146
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options
Definition: wdfdevice.h:3534
_Must_inspect_result_ _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR RemoteAddress
Definition: wsk.h:172
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS SourceAddress
Definition: iotypes.h:1127