ReactOS  0.4.14-dev-114-gc8cbd56
tinfo.c File Reference
#include "precomp.h"
Include dependency graph for tinfo.c:

Go to the source code of this file.

Functions

TDI_STATUS InfoTransportLayerTdiQueryEx (UINT InfoClass, UINT InfoType, UINT InfoId, PVOID Context, TDIEntityID *id, PNDIS_BUFFER Buffer, PUINT BufferSize)
 
TDI_STATUS InfoTransportLayerTdiSetEx (UINT InfoClass, UINT InfoType, UINT InfoId, PVOID Context, TDIEntityID *id, PCHAR Buffer, UINT BufferSize)
 

Function Documentation

◆ InfoTransportLayerTdiQueryEx()

TDI_STATUS InfoTransportLayerTdiQueryEx ( UINT  InfoClass,
UINT  InfoType,
UINT  InfoId,
PVOID  Context,
TDIEntityID id,
PNDIS_BUFFER  Buffer,
PUINT  BufferSize 
)

Definition at line 13 of file tinfo.c.

19  {
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 }
signed char * PCHAR
Definition: retypes.h:7
#define ENTITY_TYPE_ID
Definition: tdiinfo.h:39
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
#define BufferSize
Definition: classpnp.h:419
#define INFO_TYPE_PROVIDER
Definition: tdiinfo.h:69
unsigned int ULONG
Definition: retypes.h:1
#define CL_TL_UDP
Definition: tdiinfo.h:52
#define TDI_INVALID_REQUEST
Definition: tdistat.h:63

◆ InfoTransportLayerTdiSetEx()

TDI_STATUS InfoTransportLayerTdiSetEx ( UINT  InfoClass,
UINT  InfoType,
UINT  InfoId,
PVOID  Context,
TDIEntityID id,
PCHAR  Buffer,
UINT  BufferSize 
)

Definition at line 30 of file tinfo.c.

36  {
37  return TDI_INVALID_REQUEST;
38 }
#define TDI_INVALID_REQUEST
Definition: tdistat.h:63