- Fix wmilib.h

svn path=/branches/header-work/; revision=46186
This commit is contained in:
Amine Khaldi 2010-03-13 20:47:12 +00:00
parent d8a6ad0f81
commit df603c19d8

View file

@ -22,17 +22,6 @@ typedef struct _WMIGUIDREGINFO {
ULONG Flags;
} WMIGUIDREGINFO, *PWMIGUIDREGINFO;
typedef struct _WMILIB_CONTEXT {
ULONG GuidCount;
PWMIGUIDREGINFO GuidList;
PWMI_QUERY_REGINFO QueryWmiRegInfo;
PWMI_QUERY_DATABLOCK QueryWmiDataBlock;
PWMI_SET_DATABLOCK SetWmiDataBlock;
PWMI_SET_DATAITEM SetWmiDataItem;
PWMI_EXECUTE_METHOD ExecuteWmiMethod;
PWMI_FUNCTION_CONTROL WmiFunctionControl;
} WMILIB_CONTEXT, *PWMILIB_CONTEXT;
typedef NTSTATUS
(NTAPI *PWMI_QUERY_REGINFO) (
IN OUT PDEVICE_OBJECT DeviceObject,
@ -42,6 +31,14 @@ typedef NTSTATUS
IN OUT PUNICODE_STRING MofResourceName,
OUT PDEVICE_OBJECT *Pdo OPTIONAL);
typedef NTSTATUS
(NTAPI *PWMI_FUNCTION_CONTROL) (
IN OUT PDEVICE_OBJECT DeviceObject,
IN OUT PIRP Irp,
IN ULONG GuidIndex,
IN WMIENABLEDISABLECONTROL Function,
IN BOOLEAN Enable);
typedef NTSTATUS
(NTAPI *PWMI_QUERY_DATABLOCK) (
IN OUT PDEVICE_OBJECT DeviceObject,
@ -53,6 +50,17 @@ typedef NTSTATUS
IN ULONG BufferAvail,
OUT PUCHAR Buffer OPTIONAL);
typedef NTSTATUS
(NTAPI *PWMI_EXECUTE_METHOD) (
IN OUT PDEVICE_OBJECT DeviceObject,
IN OUT PIRP Irp,
IN ULONG GuidIndex,
IN ULONG InstanceIndex,
IN ULONG MethodId,
IN ULONG InBufferSize,
IN ULONG OutBufferSize,
IN OUT PUCHAR Buffer);
typedef NTSTATUS
(NTAPI *PWMI_SET_DATABLOCK) (
IN OUT PDEVICE_OBJECT DeviceObject,
@ -72,24 +80,16 @@ typedef NTSTATUS
IN ULONG BufferSize,
IN PUCHAR Buffer);
typedef NTSTATUS
(NTAPI *PWMI_EXECUTE_METHOD) (
IN OUT PDEVICE_OBJECT DeviceObject,
IN OUT PIRP Irp,
IN ULONG GuidIndex,
IN ULONG InstanceIndex,
IN ULONG MethodId,
IN ULONG InBufferSize,
IN ULONG OutBufferSize,
IN OUT PUCHAR Buffer);
typedef NTSTATUS
(NTAPI *PWMI_FUNCTION_CONTROL) (
IN OUT PDEVICE_OBJECT DeviceObject,
IN OUT PIRP Irp,
IN ULONG GuidIndex,
IN WMIENABLEDISABLECONTROL Function,
IN BOOLEAN Enable);
typedef struct _WMILIB_CONTEXT {
ULONG GuidCount;
PWMIGUIDREGINFO GuidList;
PWMI_QUERY_REGINFO QueryWmiRegInfo;
PWMI_QUERY_DATABLOCK QueryWmiDataBlock;
PWMI_SET_DATABLOCK SetWmiDataBlock;
PWMI_SET_DATAITEM SetWmiDataItem;
PWMI_EXECUTE_METHOD ExecuteWmiMethod;
PWMI_FUNCTION_CONTROL WmiFunctionControl;
} WMILIB_CONTEXT, *PWMILIB_CONTEXT;
#if (NTDDI_VERSION >= NTDDI_WIN2K)