ReactOS  0.4.13-dev-651-g5dbc677
tinfo.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS TCP/IP protocol driver
4  * FILE: tcpip/tinfo.c
5  * PURPOSE: Transport layer information
6  * PROGRAMMERS: Art Yerkes
7  * REVISIONS:
8  * CSH 01/08-2000 Created
9  */
10 
11 #include "precomp.h"
12 
14  UINT InfoType,
15  UINT InfoId,
16  PVOID Context,
17  TDIEntityID *id,
19  PUINT BufferSize ) {
20  if( InfoClass == INFO_CLASS_GENERIC &&
21  InfoType == INFO_TYPE_PROVIDER &&
22  InfoId == ENTITY_TYPE_ID ) {
23  ULONG Temp = CL_TL_UDP;
24  return InfoCopyOut( (PCHAR)&Temp, sizeof(Temp), Buffer, BufferSize );
25  }
26 
27  return TDI_INVALID_REQUEST;
28 }
29 
31  UINT InfoType,
32  UINT InfoId,
33  PVOID Context,
34  TDIEntityID *id,
35  PCHAR Buffer,
36  UINT BufferSize ) {
37  return TDI_INVALID_REQUEST;
38 }
signed char * PCHAR
Definition: retypes.h:7
MDL * PNDIS_BUFFER
Definition: ndis.h:343
#define ENTITY_TYPE_ID
Definition: tdiinfo.h:39
LONG TDI_STATUS
Definition: tdi.h:36
TDI_STATUS InfoCopyOut(PCHAR DataOut, UINT SizeOut, PNDIS_BUFFER ClientBuf, PUINT ClientBufSize)
Definition: info.c:97
Definition: bufpool.h:45
#define INFO_CLASS_GENERIC
Definition: tdiinfo.h:64
TDI_STATUS InfoTransportLayerTdiSetEx(UINT InfoClass, UINT InfoType, UINT InfoId, PVOID Context, TDIEntityID *id, PCHAR Buffer, UINT BufferSize)
Definition: tinfo.c:30
#define BufferSize
Definition: classpnp.h:419
unsigned int UINT
Definition: ndis.h:50
#define INFO_TYPE_PROVIDER
Definition: tdiinfo.h:69
unsigned int ULONG
Definition: retypes.h:1
#define CL_TL_UDP
Definition: tdiinfo.h:52
TDI_STATUS InfoTransportLayerTdiQueryEx(UINT InfoClass, UINT InfoType, UINT InfoId, PVOID Context, TDIEntityID *id, PNDIS_BUFFER Buffer, PUINT BufferSize)
Definition: tinfo.c:13
#define TDI_INVALID_REQUEST
Definition: tdistat.h:63
unsigned int * PUINT
Definition: ndis.h:50