ReactOS  0.4.15-dev-2487-g7b27e7c
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  */
16 NTAPI
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  */
41 NTAPI
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  */
63 NTAPI
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  */
85 NTAPI
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  */
108 NTSTATUS
109 NTAPI
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 {
121  return STATUS_NOT_IMPLEMENTED;
122 }
123 
124 
125 /*
126  * ClientEventError
127  *
128  * @unimplemented
129  */
130 NTSTATUS
131 NTAPI
133  IN PVOID TdiEventContext,
135  )
136 {
138  return STATUS_NOT_IMPLEMENTED;
139 }
140 
141 
142 /*
143  * ClientEventReceiveDatagram
144  *
145  * @unimplemented
146  */
147 NTSTATUS
148 NTAPI
150  IN PVOID TdiEventContext,
151  IN LONG SourceAddressLength,
153  IN LONG OptionsLength,
154  IN PVOID Options,
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 {
164  return STATUS_NOT_IMPLEMENTED;
165 }
166 
167 
168 /*
169  * ClientEventReceiveExpedited
170  *
171  * @unimplemented
172  */
174 NTAPI
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 {
187  return STATUS_NOT_IMPLEMENTED;
188 }
189 
190 
191 /*
192  * ClientEventReceive
193  *
194  * @unimplemented
195  */
196 NTSTATUS
197 NTAPI
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 {
210  return STATUS_NOT_IMPLEMENTED;
211 }
212 
213 
214 /*
215  * ClientEventSendPossible
216  *
217  * @unimplemented
218  */
220 NTAPI
222  IN PVOID TdiEventContext,
223  IN PVOID ConnectionContext,
224  IN ULONG BytesAvailable
225  )
226 {
228  return STATUS_NOT_IMPLEMENTED;
229 }
230 
231 NTSTATUS
232 NTAPI
234  _In_ PTDI_CLIENT_INTERFACE_INFO ClientInterfaceInfo,
237 {
239  return STATUS_NOT_IMPLEMENTED;
240 }
241 
242 NTSTATUS
243 NTAPI
246 {
248  return STATUS_NOT_IMPLEMENTED;
249 }
250 
251 /* EOF */
#define IN
Definition: typedefs.h:39
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
_In_ PFCB _In_ LONGLONG StartingOffset
Definition: cdprocs.h:290
NTSTATUS NTAPI TdiRegisterPnPHandlers(_In_ PTDI_CLIENT_INTERFACE_INFO ClientInterfaceInfo, _In_ ULONG InterfaceInfoSize, _Out_ HANDLE *BindingHandle)
Definition: handler.c:233
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 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
LONG NTSTATUS
Definition: precomp.h:26
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
_In_ ULONG _Out_ HANDLE * BindingHandle
Definition: tdikrnl.h:1146
LONG TDI_STATUS
Definition: tdi.h:36
NTSTATUS NTAPI TdiDeregisterPnPHandlers(_In_ HANDLE BindingHandle)
Definition: handler.c:244
NTSTATUS NTAPI TdiDefaultErrorHandler(IN PVOID TdiEventContext, IN NTSTATUS Status)
Definition: handler.c:132
return STATUS_NOT_IMPLEMENTED
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
long LONG
Definition: pedump.c:60
#define _Out_
Definition: no_sal2.h:160
Status
Definition: gdiplustypes.h:24
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options
Definition: wdfdevice.h:3531
TDI_STATUS NTAPI TdiDefaultSendPossibleHandler(IN PVOID TdiEventContext, IN PVOID ConnectionContext, IN ULONG BytesAvailable)
Definition: handler.c:221
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
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
_In_ ULONG InterfaceInfoSize
Definition: tdikrnl.h:1146
#define _In_
Definition: no_sal2.h:158
#define OUT
Definition: typedefs.h:40
unsigned int ULONG
Definition: retypes.h:1
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
#define UNIMPLEMENTED
Definition: debug.h:115
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
_Must_inspect_result_ typedef _In_ PHYSICAL_ADDRESS SourceAddress
Definition: iotypes.h:1127
_Must_inspect_result_ _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR RemoteAddress
Definition: wsk.h:170