ReactOS  0.4.13-dev-242-g611e6d7
TcpIp_drv.c File Reference
#include <kmt_test.h>
#include "tcpip.h"
Include dependency graph for TcpIp_drv.c:

Go to the source code of this file.

Functions

NTSTATUS TestEntry (_In_ PDRIVER_OBJECT DriverObject, _In_ PCUNICODE_STRING RegistryPath, _Out_ PCWSTR *DeviceName, _Inout_ INT *Flags)
 
VOID TestUnload (_In_ PDRIVER_OBJECT DriverObject)
 

Variables

KMT_MESSAGE_HANDLER TestTdi
 
KMT_MESSAGE_HANDLER TestConnect
 
struct {
   ULONG   ControlCode
 
   PKMT_MESSAGE_HANDLER   Handler
 
MessageHandlers []
 

Function Documentation

◆ TestEntry()

NTSTATUS TestEntry ( _In_ PDRIVER_OBJECT  DriverObject,
_In_ PCUNICODE_STRING  RegistryPath,
_Out_ PCWSTR DeviceName,
_Inout_ INT Flags 
)

Definition at line 25 of file TcpIp_drv.c.

30 {
31  ULONG i;
32 
33  PAGED_CODE();
34 
38 
39  *DeviceName = L"TcpIp";
40 
41  for (i = 0; i < (sizeof(MessageHandlers) / sizeof(MessageHandlers[0])); i++)
43 
44  trace("TcpIp test driver loaded.\n");
45 
46  return STATUS_SUCCESS;
47 }
#define trace(...)
Definition: kmt_test.h:217
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
static struct @1565 MessageHandlers[]
ULONG ControlCode
Definition: TcpIp_drv.c:16
WCHAR DeviceName[]
Definition: adapter.cpp:21
#define PAGED_CODE()
Definition: video.h:57
PKMT_MESSAGE_HANDLER Handler
Definition: TcpIp_drv.c:17
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
smooth NULL
Definition: ftsmooth.c:416
static PDRIVER_OBJECT DriverObject
Definition: template.c:42
NTSTATUS KmtRegisterMessageHandler(IN ULONG ControlCode OPTIONAL, IN PDEVICE_OBJECT DeviceObject OPTIONAL, IN PKMT_MESSAGE_HANDLER MessageHandler)
static const WCHAR L[]
Definition: oid.c:1250
unsigned int ULONG
Definition: retypes.h:1
_In_ PUNICODE_STRING RegistryPath
Definition: wmip.h:27
return STATUS_SUCCESS
Definition: btrfs.c:2745

◆ TestUnload()

VOID TestUnload ( _In_ PDRIVER_OBJECT  DriverObject)

Definition at line 50 of file TcpIp_drv.c.

52 {
53  PAGED_CODE();
54 
56 }
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
#define PAGED_CODE()
Definition: video.h:57
static PDRIVER_OBJECT DriverObject
Definition: template.c:42

Variable Documentation

◆ ControlCode

ULONG ControlCode

Definition at line 16 of file TcpIp_drv.c.

Referenced by TestEntry().

◆ Handler

PKMT_MESSAGE_HANDLER Handler

Definition at line 17 of file TcpIp_drv.c.

Referenced by TestEntry().

◆ MessageHandlers

struct { ... } MessageHandlers[]
Initial value:
=
{
}
#define IOCTL_TEST_TDI
Definition: tcpip.h:2
KMT_MESSAGE_HANDLER TestTdi
Definition: tdi.c:283
KMT_MESSAGE_HANDLER TestConnect
Definition: connect.c:257
#define IOCTL_TEST_CONNECT
Definition: tcpip.h:3

Referenced by TestEntry().

◆ TestConnect

KMT_MESSAGE_HANDLER TestConnect

Definition at line 257 of file connect.c.

◆ TestTdi

KMT_MESSAGE_HANDLER TestTdi

Definition at line 283 of file tdi.c.