ReactOS 0.4.15-dev-7788-g1ad9096
wmilib.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _WMIGUIDREGINFO
 
struct  _WMILIB_CONTEXT
 

Typedefs

typedef enum _WMIENABLEDISABLECONTROL WMIENABLEDISABLECONTROL
 
typedef enum _WMIENABLEDISABLECONTROLPWMIENABLEDISABLECONTROL
 
typedef enum _SYSCTL_IRP_DISPOSITION SYSCTL_IRP_DISPOSITION
 
typedef enum _SYSCTL_IRP_DISPOSITIONPSYSCTL_IRP_DISPOSITION
 
typedef struct _WMIGUIDREGINFO WMIGUIDREGINFO
 
typedef struct _WMIGUIDREGINFOPWMIGUIDREGINFO
 
typedef NTSTATUS(NTAPIPWMI_QUERY_REGINFO) (IN OUT PDEVICE_OBJECT DeviceObject, IN OUT PULONG RegFlags, IN OUT PUNICODE_STRING InstanceName, OUT PUNICODE_STRING *RegistryPath OPTIONAL, IN OUT PUNICODE_STRING MofResourceName, OUT PDEVICE_OBJECT *Pdo OPTIONAL)
 
typedef NTSTATUS(NTAPIPWMI_FUNCTION_CONTROL) (IN OUT PDEVICE_OBJECT DeviceObject, IN OUT PIRP Irp, IN ULONG GuidIndex, IN WMIENABLEDISABLECONTROL Function, IN BOOLEAN Enable)
 
typedef NTSTATUS(NTAPIPWMI_QUERY_DATABLOCK) (IN OUT PDEVICE_OBJECT DeviceObject, IN OUT PIRP Irp, IN ULONG GuidIndex, IN ULONG InstanceIndex, IN ULONG InstanceCount, OUT PULONG InstanceLengthArray OPTIONAL, IN ULONG BufferAvail, OUT PUCHAR Buffer OPTIONAL)
 
typedef NTSTATUS(NTAPIPWMI_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(NTAPIPWMI_SET_DATABLOCK) (IN OUT PDEVICE_OBJECT DeviceObject, IN OUT PIRP Irp, IN ULONG GuidIndex, IN ULONG InstanceIndex, IN ULONG BufferSize, IN PUCHAR Buffer)
 
typedef NTSTATUS(NTAPIPWMI_SET_DATAITEM) (IN OUT PDEVICE_OBJECT DeviceObject, IN OUT PIRP Irp, IN ULONG GuidIndex, IN ULONG InstanceIndex, IN ULONG DataItemId, IN ULONG BufferSize, IN PUCHAR Buffer)
 
typedef struct _WMILIB_CONTEXT WMILIB_CONTEXT
 
typedef struct _WMILIB_CONTEXTPWMILIB_CONTEXT
 

Enumerations

enum  _WMIENABLEDISABLECONTROL { WmiEventControl , WmiDataBlockControl }
 
enum  _SYSCTL_IRP_DISPOSITION { IrpProcessed , IrpNotCompleted , IrpNotWmi , IrpForward }
 

Functions

NTSTATUS NTAPI WmiCompleteRequest (IN PDEVICE_OBJECT DeviceObject, IN OUT PIRP Irp, IN NTSTATUS Status, IN ULONG BufferUsed, IN CCHAR PriorityBoost)
 
NTSTATUS NTAPI WmiSystemControl (IN PWMILIB_CONTEXT WmiLibInfo, IN PDEVICE_OBJECT DeviceObject, IN OUT PIRP Irp, OUT PSYSCTL_IRP_DISPOSITION IrpDisposition)
 
NTSTATUS NTAPI WmiFireEvent (IN PDEVICE_OBJECT DeviceObject, IN LPCGUID Guid, IN ULONG InstanceIndex, IN ULONG EventDataSize, IN PVOID EventData)
 

Typedef Documentation

◆ PSYSCTL_IRP_DISPOSITION

◆ PWMI_EXECUTE_METHOD

◆ PWMI_FUNCTION_CONTROL

Definition at line 34 of file wmilib.h.

◆ PWMI_QUERY_DATABLOCK

Definition at line 42 of file wmilib.h.

◆ PWMI_QUERY_REGINFO

◆ PWMI_SET_DATABLOCK

Definition at line 64 of file wmilib.h.

◆ PWMI_SET_DATAITEM

◆ PWMIENABLEDISABLECONTROL

◆ PWMIGUIDREGINFO

◆ PWMILIB_CONTEXT

◆ SYSCTL_IRP_DISPOSITION

◆ WMIENABLEDISABLECONTROL

◆ WMIGUIDREGINFO

◆ WMILIB_CONTEXT

Enumeration Type Documentation

◆ _SYSCTL_IRP_DISPOSITION

Enumerator
IrpProcessed 
IrpNotCompleted 
IrpNotWmi 
IrpForward 

Definition at line 12 of file wmilib.h.

12 {
@ IrpNotWmi
Definition: wmilib.h:15
@ IrpForward
Definition: wmilib.h:16
@ IrpNotCompleted
Definition: wmilib.h:14
@ IrpProcessed
Definition: wmilib.h:13
enum _SYSCTL_IRP_DISPOSITION SYSCTL_IRP_DISPOSITION
enum _SYSCTL_IRP_DISPOSITION * PSYSCTL_IRP_DISPOSITION

◆ _WMIENABLEDISABLECONTROL

Enumerator
WmiEventControl 
WmiDataBlockControl 

Definition at line 7 of file wmilib.h.

7 {
enum _WMIENABLEDISABLECONTROL WMIENABLEDISABLECONTROL
enum _WMIENABLEDISABLECONTROL * PWMIENABLEDISABLECONTROL
@ WmiEventControl
Definition: wmilib.h:8
@ WmiDataBlockControl
Definition: wmilib.h:9

Function Documentation

◆ WmiCompleteRequest()

NTSTATUS NTAPI WmiCompleteRequest ( IN PDEVICE_OBJECT  DeviceObject,
IN OUT PIRP  Irp,
IN NTSTATUS  Status,
IN ULONG  BufferUsed,
IN CCHAR  PriorityBoost 
)

◆ WmiFireEvent()

NTSTATUS NTAPI WmiFireEvent ( IN PDEVICE_OBJECT  DeviceObject,
IN LPCGUID  Guid,
IN ULONG  InstanceIndex,
IN ULONG  EventDataSize,
IN PVOID  EventData 
)

Definition at line 36 of file wmilib.c.

41{
42 DPRINT1("WmiLib: WmiFireEvent() unimplemented\n");
43 return STATUS_SUCCESS;
44}
#define DPRINT1
Definition: precomp.h:8
#define STATUS_SUCCESS
Definition: shellext.h:65

◆ WmiSystemControl()

NTSTATUS NTAPI WmiSystemControl ( IN PWMILIB_CONTEXT  WmiLibInfo,
IN PDEVICE_OBJECT  DeviceObject,
IN OUT PIRP  Irp,
OUT PSYSCTL_IRP_DISPOSITION  IrpDisposition 
)