- Implement CmBattIoctl

svn path=/trunk/; revision=46332
This commit is contained in:
Cameron Gutman 2010-03-22 01:41:17 +00:00
parent a1d37edf49
commit 2edf3c4c34

View file

@ -351,8 +351,21 @@ NTAPI
CmBattIoctl(PDEVICE_OBJECT DeviceObject,
PIRP Irp)
{
UNIMPLEMENTED;
return STATUS_NOT_IMPLEMENTED;
PCMBATT_DEVICE_EXTENSION DeviceExtension = DeviceObject->DeviceExtension;
NTSTATUS Status;
Status = BatteryClassIoctl(DeviceExtension->ClassData,
Irp);
if (Status == STATUS_NOT_SUPPORTED)
{
Irp->IoStatus.Status = Status;
Irp->IoStatus.Information = 0;
IoCompleteRequest(Irp, IO_NO_INCREMENT);
}
return Status;
}
NTSTATUS