ReactOS 0.4.16-dev-329-g9223134
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 PAGED_CODE()
static struct @1640 MessageHandlers[]
PKMT_MESSAGE_HANDLER Handler
Definition: TcpIp_drv.c:17
ULONG ControlCode
Definition: TcpIp_drv.c:16
#define trace
Definition: atltest.h:70
#define NULL
Definition: types.h:112
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
NTSTATUS KmtRegisterMessageHandler(IN ULONG ControlCode OPTIONAL, IN PDEVICE_OBJECT DeviceObject OPTIONAL, IN PKMT_MESSAGE_HANDLER MessageHandler)
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
#define L(x)
Definition: ntvdm.h:50
#define STATUS_SUCCESS
Definition: shellext.h:65
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
Definition: wdfdevice.h:3275
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
Definition: wdfdriver.h:215
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170

◆ TestUnload()

VOID TestUnload ( _In_ PDRIVER_OBJECT  DriverObject)

Definition at line 50 of file TcpIp_drv.c.

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().

◆ 

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

Referenced by TestEntry().

◆ TestConnect

KMT_MESSAGE_HANDLER TestConnect
extern

Definition at line 257 of file connect.c.

Referenced by RunTest().

◆ TestTdi

KMT_MESSAGE_HANDLER TestTdi
extern

Definition at line 283 of file tdi.c.