Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenclose.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: Serial port driver 00004 * FILE: drivers/dd/serial/close.c 00005 * PURPOSE: Serial IRP_MJ_CLOSE operations 00006 * 00007 * PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org) 00008 */ 00009 00010 #include "serial.h" 00011 00012 NTSTATUS NTAPI 00013 SerialClose( 00014 IN PDEVICE_OBJECT DeviceObject, 00015 IN PIRP Irp) 00016 { 00017 PSERIAL_DEVICE_EXTENSION pDeviceExtension; 00018 00019 TRACE_(SERIAL, "IRP_MJ_CLOSE\n"); 00020 pDeviceExtension = (PSERIAL_DEVICE_EXTENSION)DeviceObject->DeviceExtension; 00021 pDeviceExtension->IsOpened = FALSE; 00022 00023 Irp->IoStatus.Information = 0; 00024 Irp->IoStatus.Status = STATUS_SUCCESS; 00025 IoCompleteRequest(Irp, IO_NO_INCREMENT); 00026 return STATUS_SUCCESS; 00027 } Generated on Mon May 28 2012 04:27:21 for ReactOS by
1.7.6.1
|