ReactOS  0.4.15-dev-976-g0f66c66
serenum.c File Reference
#include "serenum.h"
#include <debug.h>
Include dependency graph for serenum.c:

Go to the source code of this file.

Functions

static NTSTATUS NTAPI SerenumPnp (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
 
static VOID NTAPI DriverUnload (IN PDRIVER_OBJECT DriverObject)
 
static NTSTATUS NTAPI IrpStub (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
 
NTSTATUS NTAPI DriverEntry (IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegPath)
 

Variables

static DRIVER_DISPATCH SerenumPnp
 
static DRIVER_DISPATCH IrpStub
 
static DRIVER_UNLOAD DriverUnload
 
DRIVER_INITIALIZE DriverEntry
 

Function Documentation

◆ DriverEntry()

NTSTATUS NTAPI DriverEntry ( IN PDRIVER_OBJECT  DriverObject,
IN PUNICODE_STRING  RegPath 
)

Definition at line 57 of file serenum.c.

60 {
61  ULONG i;
62 
65 
66  for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
68 
69  //DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] = SerialQueryInformation;
71  //DriverObject->MajorFunction[IRP_MJ_POWER] = SerialPower;
72 
73  return STATUS_SUCCESS;
74 }
static DRIVER_DISPATCH IrpStub
Definition: serenum.c:15
#define IRP_MJ_PNP
Definition: cdrw_usr.h:52
#define IRP_MJ_MAXIMUM_FUNCTION
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
DRIVER_ADD_DEVICE SerenumAddDevice
Definition: serenum.h:77
PDRIVER_EXTENSION DriverExtension
Definition: iotypes.h:2181
static PDRIVER_OBJECT DriverObject
Definition: template.c:42
static DRIVER_DISPATCH SerenumPnp
Definition: serenum.c:14
static DRIVER_UNLOAD DriverUnload
Definition: serenum.c:16
PDRIVER_UNLOAD DriverUnload
Definition: iotypes.h:2187
PDRIVER_ADD_DEVICE AddDevice
Definition: iotypes.h:2119
PDRIVER_DISPATCH MajorFunction[IRP_MJ_MAXIMUM_FUNCTION+1]
Definition: iotypes.h:2188
unsigned int ULONG
Definition: retypes.h:1
return STATUS_SUCCESS
Definition: btrfs.c:3014

◆ DriverUnload()

static VOID NTAPI DriverUnload ( IN PDRIVER_OBJECT  DriverObject)
static

Definition at line 31 of file serenum.c.

32 {
33  // nothing to do here yet
34 }

◆ IrpStub()

static NTSTATUS NTAPI IrpStub ( IN PDEVICE_OBJECT  DeviceObject,
IN PIRP  Irp 
)
static

Definition at line 37 of file serenum.c.

40 {
42  {
43  /* Forward IRPs to lower device */
45  }
46  else
47  {
48  /* Forward IRPs to attached FDO */
50  }
51 }
NTSTATUS NTAPI ForwardIrpToLowerDeviceAndForget(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: misc.c:134
_In_ PIRP Irp
Definition: csq.h:116
PVOID DeviceExtension
Definition: env_spec_w32.h:418
NTSTATUS NTAPI ForwardIrpToAttachedFdoAndForget(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: misc.c:152
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1569

◆ SerenumPnp()

static NTSTATUS NTAPI SerenumPnp ( IN PDEVICE_OBJECT  DeviceObject,
IN PIRP  Irp 
)
static

Definition at line 20 of file serenum.c.

23 {
26  else
28 }
_In_ PIRP Irp
Definition: csq.h:116
NTSTATUS SerenumPdoPnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: pdo.c:109
PVOID DeviceExtension
Definition: env_spec_w32.h:418
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1569
NTSTATUS SerenumFdoPnp(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: fdo.c:152

Variable Documentation

◆ DriverEntry

DRIVER_INITIALIZE DriverEntry

Definition at line 17 of file serenum.c.

◆ DriverUnload

DRIVER_UNLOAD DriverUnload
static

Definition at line 16 of file serenum.c.

Referenced by DriverEntry().

◆ IrpStub

DRIVER_DISPATCH IrpStub
static

Definition at line 15 of file serenum.c.

Referenced by DriverEntry().

◆ SerenumPnp

DRIVER_DISPATCH SerenumPnp
static

Definition at line 14 of file serenum.c.

Referenced by DriverEntry().