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 13 NTSTATUS NTAPI 14 SermouseCreate( 15 IN PDEVICE_OBJECT DeviceObject, 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; 23 IoCompleteRequest(Irp, IO_NO_INCREMENT); 24 return STATUS_SUCCESS; 25 } 26 27 NTSTATUS NTAPI 28 SermouseClose( 29 IN PDEVICE_OBJECT DeviceObject, 30 IN PIRP Irp) 31 { 32 TRACE_(SERMOUSE, "IRP_MJ_CLOSE\n"); 33 34 Irp->IoStatus.Status = STATUS_SUCCESS; 35 Irp->IoStatus.Information = 0; 36 IoCompleteRequest(Irp, IO_NO_INCREMENT); 37 return STATUS_SUCCESS; 38 } 39 40 NTSTATUS NTAPI 41 SermouseCleanup( 42 IN PDEVICE_OBJECT DeviceObject, 43 IN PIRP Irp) 44 { 45 TRACE_(SERMOUSE, "IRP_MJ_CLEANUP\n"); 46 47 Irp->IoStatus.Status = STATUS_SUCCESS; 48 Irp->IoStatus.Information = 0; 49 IoCompleteRequest(Irp, IO_NO_INCREMENT); 50 return STATUS_SUCCESS; 51 } 52