2005-11-09 11:57:58 +00:00
|
|
|
|
/*
|
2006-04-23 08:46:25 +00:00
|
|
|
|
* PROJECT: ReactOS Serial mouse driver
|
|
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
|
|
|
* FILE: drivers/input/sermouse/createclose.c
|
|
|
|
|
* PURPOSE: IRP_MJ_CREATE and IRP_MJ_CLOSE operations
|
|
|
|
|
* PROGRAMMERS: Copyright 2005-2006 Herv<EFBFBD> Poussineau (hpoussin@reactos.org)
|
2005-11-09 11:57:58 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "sermouse.h"
|
|
|
|
|
|
2014-01-29 10:56:25 +00:00
|
|
|
|
#include <debug.h>
|
|
|
|
|
|
2005-11-09 11:57:58 +00:00
|
|
|
|
NTSTATUS NTAPI
|
|
|
|
|
SermouseCreate(
|
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
|
IN PIRP Irp)
|
|
|
|
|
{
|
2007-12-28 21:10:07 +00:00
|
|
|
|
TRACE_(SERMOUSE, "IRP_MJ_CREATE\n");
|
2005-11-09 11:57:58 +00:00
|
|
|
|
ASSERT(((PSERMOUSE_DEVICE_EXTENSION)DeviceObject->DeviceExtension)->PnpState == dsStarted);
|
|
|
|
|
|
|
|
|
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
|
|
|
|
Irp->IoStatus.Information = 0;
|
|
|
|
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NTSTATUS NTAPI
|
|
|
|
|
SermouseClose(
|
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
|
IN PIRP Irp)
|
|
|
|
|
{
|
2007-12-28 21:10:07 +00:00
|
|
|
|
TRACE_(SERMOUSE, "IRP_MJ_CLOSE\n");
|
2005-11-09 11:57:58 +00:00
|
|
|
|
|
|
|
|
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
|
|
|
|
Irp->IoStatus.Information = 0;
|
|
|
|
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
NTSTATUS NTAPI
|
|
|
|
|
SermouseCleanup(
|
|
|
|
|
IN PDEVICE_OBJECT DeviceObject,
|
|
|
|
|
IN PIRP Irp)
|
|
|
|
|
{
|
2007-12-28 21:10:07 +00:00
|
|
|
|
TRACE_(SERMOUSE, "IRP_MJ_CLEANUP\n");
|
2005-11-09 11:57:58 +00:00
|
|
|
|
|
|
|
|
|
Irp->IoStatus.Status = STATUS_SUCCESS;
|
|
|
|
|
Irp->IoStatus.Information = 0;
|
|
|
|
|
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
|
|
|
|
return STATUS_SUCCESS;
|
|
|
|
|
}
|