ReactOS 0.4.16-dev-297-gc569aee
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
28}
Definition: bufpool.h:45
TDI_STATUS InfoCopyOut(PCHAR DataOut, UINT SizeOut, PNDIS_BUFFER ClientBuf, PUINT ClientBufSize)
Definition: info.c:97
#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
uint32_t ULONG
Definition: typedefs.h:59
char * PCHAR
Definition: typedefs.h:51
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254

◆ 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 {
38}