ReactOS  0.4.15-dev-1384-g878186b
TcpIp_drv.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS kernel-mode tests
3  * LICENSE: GPLv2+ - See COPYING in the top level directory
4  * PURPOSE: Kernel-Mode Test Suite for tcpip.sys
5  * PROGRAMMER: Jérôme Gardou <jerome.gardou@reactos.org>
6  */
7 
8 #include <kmt_test.h>
9 #include "tcpip.h"
10 
11 extern KMT_MESSAGE_HANDLER TestTdi;
12 extern KMT_MESSAGE_HANDLER TestConnect;
13 
14 static struct
15 {
17  PKMT_MESSAGE_HANDLER Handler;
18 } MessageHandlers[] =
19 {
22 };
23 
29  _Inout_ INT *Flags)
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 }
48 
49 VOID
52 {
53  PAGED_CODE();
54 
56 }
57 
const uint16_t * PCWSTR
Definition: typedefs.h:57
#define IOCTL_TEST_TDI
Definition: tcpip.h:2
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
LONG NTSTATUS
Definition: precomp.h:26
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
Definition: wdfdriver.h:213
KMT_MESSAGE_HANDLER TestTdi
Definition: tdi.c:283
ULONG ControlCode
Definition: TcpIp_drv.c:16
int32_t INT
Definition: typedefs.h:58
PKMT_MESSAGE_HANDLER Handler
Definition: TcpIp_drv.c:17
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_opt_ PCUNICODE_STRING DeviceName
Definition: wdfdevice.h:3272
NTSTATUS TestEntry(_In_ PDRIVER_OBJECT DriverObject, _In_ PCUNICODE_STRING RegistryPath, _Out_ PCWSTR *DeviceName, _Inout_ INT *Flags)
Definition: TcpIp_drv.c:25
#define _Out_
Definition: no_sal2.h:160
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
NTSTATUS KmtRegisterMessageHandler(IN ULONG ControlCode OPTIONAL, IN PDEVICE_OBJECT DeviceObject OPTIONAL, IN PKMT_MESSAGE_HANDLER MessageHandler)
#define trace
Definition: atltest.h:70
#define _Inout_
Definition: no_sal2.h:162
VOID TestUnload(_In_ PDRIVER_OBJECT DriverObject)
Definition: TcpIp_drv.c:50
static const WCHAR L[]
Definition: oid.c:1250
static struct @1618 MessageHandlers[]
#define _In_
Definition: no_sal2.h:158
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
KMT_MESSAGE_HANDLER TestConnect
Definition: connect.c:257
#define NULL
Definition: types.h:112
unsigned int ULONG
Definition: retypes.h:1
#define STATUS_SUCCESS
Definition: shellext.h:65
#define IOCTL_TEST_CONNECT
Definition: tcpip.h:3
#define PAGED_CODE()