Author: akhaldi
Date: Fri Mar 12 19:25:50 2010
New Revision: 46144
URL:
http://svn.reactos.org/svn/reactos?rev=46144&view=rev
Log:
[BATTC]
- Correct BatteryClassSystemControl params
- Include wmlib.h
[WMLIB]
- Add WMIENABLEDISABLECONTROL and SYSCTL_IRP_DISPOSITION
Modified:
branches/header-work/drivers/battery/battc/battc.c
branches/header-work/drivers/battery/battc/battc.h
branches/header-work/include/ddk/wmlib.h
Modified: branches/header-work/drivers/battery/battc/battc.c
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/drivers/battery/bat…
==============================================================================
--- branches/header-work/drivers/battery/battc/battc.c [iso-8859-1] (original)
+++ branches/header-work/drivers/battery/battc/battc.c [iso-8859-1] Fri Mar 12 19:25:50
2010
@@ -46,10 +46,10 @@
NTSTATUS
DDKAPI
BatteryClassSystemControl(PVOID ClassData,
- PWMILIB_CONTEXT WmiLibContext,
+ PVOID WmiLibContext,
PDEVICE_OBJECT DeviceObject,
PIRP Irp,
- PSYSCTL_IRP_DISPOSITION Disposition)
+ PVOID Disposition)
{
NTSTATUS Status;
Modified: branches/header-work/drivers/battery/battc/battc.h
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/drivers/battery/bat…
==============================================================================
--- branches/header-work/drivers/battery/battc/battc.h [iso-8859-1] (original)
+++ branches/header-work/drivers/battery/battc/battc.h [iso-8859-1] Fri Mar 12 19:25:50
2010
@@ -9,6 +9,7 @@
#pragma once
#include <ntddk.h>
+#include <wmlib.h>
#include <initguid.h>
#include <batclass.h>
Modified: branches/header-work/include/ddk/wmlib.h
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/include/ddk/wmlib.h…
==============================================================================
--- branches/header-work/include/ddk/wmlib.h [iso-8859-1] (original)
+++ branches/header-work/include/ddk/wmlib.h [iso-8859-1] Fri Mar 12 19:25:50 2010
@@ -11,6 +11,18 @@
ULONG InstanceCount;
ULONG Flags;
} WMIGUIDREGINFO, *PWMIGUIDREGINFO;
+
+typedef enum _WMIENABLEDISABLECONTROL {
+ WmiEventControl,
+ WmiDataBlockControl
+} WMIENABLEDISABLECONTROL, *PWMIENABLEDISABLECONTROL;
+
+typedef enum _SYSCTL_IRP_DISPOSITION {
+ IrpProcessed,
+ IrpNotCompleted,
+ IrpNotWmi,
+ IrpForward
+} SYSCTL_IRP_DISPOSITION, *PSYSCTL_IRP_DISPOSITION;
typedef
NTSTATUS