-
Notifications
You must be signed in to change notification settings - Fork 1
/
wmi.c
44 lines (35 loc) · 1.1 KB
/
wmi.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* PROJECT: ReactOS Virtual USB HCI Driver
* LICENSE: LGPLv2.1+ - See COPYING.LIB in the top level directory
* PURPOSE: WMI support functions
* PROGRAMMER: Thomas Faber <[email protected]>
*/
#include "usbvhci.h"
/* Section assignment */
#ifdef ALLOC_PRAGMA
#pragma alloc_text(PAGE, VhciDispatchSystemControl)
#endif /* ALLOC_PRAGMA */
/* Functions */
_Use_decl_annotations_
NTSTATUS
NTAPI
VhciDispatchSystemControl(
PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
NTSTATUS Status;
PVHCI_FDO_DEVICE_EXTENSION FdoExtension;
PAGED_CODE();
FdoExtension = DeviceObject->DeviceExtension;
NT_ASSERT(FdoExtension->Common.DeviceObject == DeviceObject);
if (FdoExtension->Common.Signature == VHCI_FDO_SIGNATURE)
{
IoSkipCurrentIrpStackLocation(Irp);
return IoCallDriver(FdoExtension->LowerDevice, Irp);
}
NT_ASSERT(FdoExtension->Common.Signature == VHCI_PDO_SIGNATURE);
UNIMPLEMENTED;
Status = Irp->IoStatus.Status;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
return Status;
}