[ros-dev] [ros-diffs] [cgutman] 46011: [CMBATT] - Add initial cmbatt driver which mostly stubs - All it does right now is register a battery device with the battc driver [BATTC] - Add a nearly complete battc driver (the only stuff missing is WMI) - Tested with
Ged Murphy
gedmurphy at gmail.com
Tue Mar 9 09:59:18 CET 2010
cgutman at svn.reactos.org wrote:
> +BCLASSAPI
> +NTSTATUS
> +DDKAPI
> +BatteryClassSystemControl(PVOID ClassData,
> + PWMILIB_CONTEXT WmiLibContext,
> + PDEVICE_OBJECT DeviceObject,
> + PIRP Irp,
> + PSYSCTL_IRP_DISPOSITION Disposition)
> +{
> + NTSTATUS Status;
> +
> + UNIMPLEMENTED
> +
> + /* FIXME: Uncomment when WmiCompleteRequest is implemented */
> +#if 0
> + Status = STATUS_WMI_GUID_NOT_FOUND;
> + WmiCompleteRequest(DeviceObject,
> + Irp,
> + Status,
> + 0,
> + IO_NO_INCREMENT);
> +#else
> + Irp->IoStatus.Status = Status = STATUS_WMI_GUID_NOT_FOUND;
> + Irp->IoStatus.Information = 0;
> +
> + IoCompleteRequest(Irp, IO_NO_INCREMENT);
> +#endif
> +
> + return Status;
> +}
> +
This isn't how WMI works at all
More information about the Ros-dev
mailing list