- Implement EnumServicesStatusW.
[reactos.git] / reactos / drivers / usb / miniport / common / close.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS USB miniport driver (Cromwell type)
4 * FILE: drivers/usb/miniport/common/close.c
5 * PURPOSE: IRP_MJ_CLOSE operations
6 *
7 * PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
8 */
9
10 #define NDEBUG
11 #include <debug.h>
12
13 #include "usbcommon.h"
14
15 NTSTATUS STDCALL
16 UsbMpClose(
17 IN PDEVICE_OBJECT DeviceObject,
18 IN PIRP Irp)
19 {
20 PUSBMP_DEVICE_EXTENSION pDeviceExtension;
21
22 DPRINT("USBMP: IRP_MJ_CLOSE\n");
23 pDeviceExtension = (PUSBMP_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
24 InterlockedDecrement((PLONG)&pDeviceExtension->DeviceOpened);
25
26 Irp->IoStatus.Information = 0;
27 Irp->IoStatus.Status = STATUS_SUCCESS;
28 IoCompleteRequest(Irp, IO_NO_INCREMENT);
29 return STATUS_SUCCESS;
30 }