ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

close.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.