ReactOS  0.4.15-dev-1177-g6cb3b62
createclose.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Serial mouse driver
3  * LICENSE: GPL - See COPYING in the top level directory
4  * FILE: drivers/input/sermouse/createclose.c
5  * PURPOSE: IRP_MJ_CREATE and IRP_MJ_CLOSE operations
6  * PROGRAMMERS: Copyright 2005-2006 Hervé Poussineau (hpoussin@reactos.org)
7  */
8 
9 #include "sermouse.h"
10 
11 #include <debug.h>
12 
16  IN PIRP Irp)
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 }
26 
30  IN PIRP Irp)
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 }
39 
43  IN PIRP Irp)
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 }
#define IN
Definition: typedefs.h:39
_In_ PIRP Irp
Definition: csq.h:116
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
#define IoCompleteRequest
Definition: irp.c:1240
#define TRACE_(x)
Definition: compat.h:76
NTSTATUS NTAPI SermouseClose(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: createclose.c:28
NTSTATUS NTAPI SermouseCleanup(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: createclose.c:41
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
_In_ PDEVICE_OBJECT DeviceObject
Definition: iotypes.h:2464
#define IO_NO_INCREMENT
Definition: iotypes.h:581
NTSTATUS NTAPI SermouseCreate(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
Definition: createclose.c:14
return STATUS_SUCCESS
Definition: btrfs.c:3014