ReactOS 0.4.16-dev-197-g92996da
createclose.c File Reference
#include "sermouse.h"
#include <debug.h>
Include dependency graph for createclose.c:

Go to the source code of this file.

Functions

NTSTATUS NTAPI SermouseCreate (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
 
NTSTATUS NTAPI SermouseClose (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
 
NTSTATUS NTAPI SermouseCleanup (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
 

Function Documentation

◆ SermouseCleanup()

NTSTATUS NTAPI SermouseCleanup ( IN PDEVICE_OBJECT  DeviceObject,
IN PIRP  Irp 
)

Definition at line 41 of file createclose.c.

44{
45 TRACE_(SERMOUSE, "IRP_MJ_CLEANUP\n");
46
47 Irp->IoStatus.Status = STATUS_SUCCESS;
48 Irp->IoStatus.Information = 0;
50 return STATUS_SUCCESS;
51}
_In_ PIRP Irp
Definition: csq.h:116
#define TRACE_(x)
Definition: compat.h:76
#define IoCompleteRequest
Definition: irp.c:1240
#define STATUS_SUCCESS
Definition: shellext.h:65
#define IO_NO_INCREMENT
Definition: iotypes.h:598

◆ SermouseClose()

NTSTATUS NTAPI SermouseClose ( IN PDEVICE_OBJECT  DeviceObject,
IN PIRP  Irp 
)

Definition at line 28 of file createclose.c.

31{
32 TRACE_(SERMOUSE, "IRP_MJ_CLOSE\n");
33
34 Irp->IoStatus.Status = STATUS_SUCCESS;
35 Irp->IoStatus.Information = 0;
37 return STATUS_SUCCESS;
38}

◆ SermouseCreate()

NTSTATUS NTAPI SermouseCreate ( IN PDEVICE_OBJECT  DeviceObject,
IN PIRP  Irp 
)

Definition at line 14 of file createclose.c.

17{
18 TRACE_(SERMOUSE, "IRP_MJ_CREATE\n");
19 ASSERT(((PSERMOUSE_DEVICE_EXTENSION)DeviceObject->DeviceExtension)->PnpState == dsStarted);
20
21 Irp->IoStatus.Status = STATUS_SUCCESS;
22 Irp->IoStatus.Information = 0;
24 return STATUS_SUCCESS;
25}
@ dsStarted
Definition: isapnp.h:31
#define ASSERT(a)
Definition: mode.c:44
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055