ReactOS 0.4.15-dev-7942-gd23573b
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,
17 TDIEntityID *id,
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
28}
29
31 UINT InfoType,
32 UINT InfoId,
34 TDIEntityID *id,
38}
Definition: bufpool.h:45
TDI_STATUS InfoCopyOut(PCHAR DataOut, UINT SizeOut, PNDIS_BUFFER ClientBuf, PUINT ClientBufSize)
Definition: info.c:97
unsigned int * PUINT
Definition: ndis.h:50
unsigned int UINT
Definition: ndis.h:50
MDL * PNDIS_BUFFER
Definition: ndis.h:343
LONG TDI_STATUS
Definition: tdi.h:36
#define ENTITY_TYPE_ID
Definition: tdiinfo.h:39
#define INFO_CLASS_GENERIC
Definition: tdiinfo.h:64
#define INFO_TYPE_PROVIDER
Definition: tdiinfo.h:69
#define CL_TL_UDP
Definition: tdiinfo.h:52
#define TDI_INVALID_REQUEST
Definition: tdistat.h:63
TDI_STATUS InfoTransportLayerTdiQueryEx(UINT InfoClass, UINT InfoType, UINT InfoId, PVOID Context, TDIEntityID *id, PNDIS_BUFFER Buffer, PUINT BufferSize)
Definition: tinfo.c:13
TDI_STATUS InfoTransportLayerTdiSetEx(UINT InfoClass, UINT InfoType, UINT InfoId, PVOID Context, TDIEntityID *id, PCHAR Buffer, UINT BufferSize)
Definition: tinfo.c:30
uint32_t ULONG
Definition: typedefs.h:59
char * PCHAR
Definition: typedefs.h:51
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254