2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: Serial port driver
4 * FILE: drivers/dd/serial/close.c
5 * PURPOSE: Serial IRP_MJ_CLOSE operations
7 * PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
16 IN PDEVICE_OBJECT DeviceObject
,
19 PSERIAL_DEVICE_EXTENSION pDeviceExtension
;
21 TRACE_(SERIAL
, "IRP_MJ_CLOSE\n");
22 pDeviceExtension
= (PSERIAL_DEVICE_EXTENSION
)DeviceObject
->DeviceExtension
;
23 pDeviceExtension
->IsOpened
= FALSE
;
25 Irp
->IoStatus
.Information
= 0;
26 Irp
->IoStatus
.Status
= STATUS_SUCCESS
;
27 IoCompleteRequest(Irp
, IO_NO_INCREMENT
);
28 return STATUS_SUCCESS
;