ReactOS  0.4.14-dev-50-g13bb5e2
wmilib.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
6 
11 
18 
19 typedef struct _WMIGUIDREGINFO {
24 
25 typedef NTSTATUS
33 
34 typedef NTSTATUS
37  IN OUT PIRP Irp,
40  IN BOOLEAN Enable);
41 
42 typedef NTSTATUS
45  IN OUT PIRP Irp,
49  OUT PULONG InstanceLengthArray OPTIONAL,
52 
53 typedef NTSTATUS
56  IN OUT PIRP Irp,
63 
64 typedef NTSTATUS
67  IN OUT PIRP Irp,
71  IN PUCHAR Buffer);
72 
73 typedef NTSTATUS
76  IN OUT PIRP Irp,
81  IN PUCHAR Buffer);
82 
83 typedef struct _WMILIB_CONTEXT {
93 
94 #if (NTDDI_VERSION >= NTDDI_WIN2K)
95 
97 NTAPI
100  IN OUT PIRP Irp,
102  IN ULONG BufferUsed,
104 
105 NTSTATUS
106 NTAPI
108  IN PWMILIB_CONTEXT WmiLibInfo,
110  IN OUT PIRP Irp,
111  OUT PSYSCTL_IRP_DISPOSITION IrpDisposition);
112 
113 NTSTATUS
114 NTAPI
117  IN LPCGUID Guid,
120  IN PVOID EventData);
121 
122 #endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
123 
124 #ifdef __cplusplus
125 }
126 #endif
enum _WMIENABLEDISABLECONTROL WMIENABLEDISABLECONTROL
#define IN
Definition: typedefs.h:38
_In_ PDEVICE_OBJECT Pdo
Definition: classpnp.h:301
enum _WMIENABLEDISABLECONTROL * PWMIENABLEDISABLECONTROL
_In_ PIRP Irp
Definition: csq.h:116
_In_ PIRP _In_ ULONG _In_ ULONG DataItemId
Definition: classpnp.h:419
unsigned char * PUCHAR
Definition: retypes.h:3
LONG NTSTATUS
Definition: precomp.h:26
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:140
_In_ LPGUID _In_ ULONG InstanceIndex
Definition: classpnp.h:1057
PWMI_QUERY_DATABLOCK QueryWmiDataBlock
Definition: wmilib.h:87
_In_ PIRP _In_ ULONG _In_ ULONG _In_ ULONG _In_ ULONG OutBufferSize
Definition: classpnp.h:429
PWMI_SET_DATAITEM SetWmiDataItem
Definition: wmilib.h:89
_SYSCTL_IRP_DISPOSITION
Definition: wmilib.h:12
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
static LPOVERLAPPED_COMPLETION_ROUTINE Function
Definition: sync.c:684
struct _WMIGUIDREGINFO WMIGUIDREGINFO
_In_ CCHAR PriorityBoost
Definition: iofuncs.h:763
PWMI_FUNCTION_CONTROL WmiFunctionControl
Definition: wmilib.h:91
unsigned char BOOLEAN
static GUID * Guid
Definition: apphelp.c:93
_Out_ ULONG * RegFlags
Definition: classpnp.h:386
_Out_ ULONG _Out_ PUNICODE_STRING _Out_ PUNICODE_STRING MofResourceName
Definition: classpnp.h:386
_In_ PIRP _In_ ULONG GuidIndex
Definition: classpnp.h:401
Definition: bufpool.h:45
struct _WMIGUIDREGINFO * PWMIGUIDREGINFO
ULONG GuidCount
Definition: wmilib.h:84
_In_ PIRP _In_ ULONG _In_ ULONG MethodId
Definition: classpnp.h:429
enum _SYSCTL_IRP_DISPOSITION SYSCTL_IRP_DISPOSITION
_In_ PIRP _In_ ULONG _In_ ULONG _In_ ULONG InBufferSize
Definition: classpnp.h:429
ULONG Flags
Definition: wmilib.h:22
_In_ LPGUID _In_ ULONG _In_ ULONG EventDataSize
Definition: classpnp.h:1057
char CCHAR
Definition: typedefs.h:50
NTSTATUS(NTAPI * PWMI_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)
Definition: wmilib.h:74
#define BufferSize
Definition: classpnp.h:419
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)
PWMIGUIDREGINFO GuidList
Definition: wmilib.h:85
#define NTSTATUS
Definition: precomp.h:20
_In_ PIRP _In_ ULONG _In_ ULONG BufferAvail
Definition: classpnp.h:401
Status
Definition: gdiplustypes.h:24
IN PDEVICE_OBJECT DeviceObject
Definition: fatprocs.h:1560
struct _WMILIB_CONTEXT WMILIB_CONTEXT
PWMI_EXECUTE_METHOD ExecuteWmiMethod
Definition: wmilib.h:90
NTSTATUS(NTAPI * PWMI_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)
Definition: wmilib.h:43
NTSTATUS(NTAPI * PWMI_SET_DATABLOCK)(IN OUT PDEVICE_OBJECT DeviceObject, IN OUT PIRP Irp, IN ULONG GuidIndex, IN ULONG InstanceIndex, IN ULONG BufferSize, IN PUCHAR Buffer)
Definition: wmilib.h:65
#define OPTIONAL
Definition: typedefs.h:40
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)
Definition: wmilib.h:54
unsigned int * PULONG
Definition: retypes.h:1
NTSTATUS NTAPI WmiFireEvent(IN PDEVICE_OBJECT DeviceObject, IN LPCGUID Guid, IN ULONG InstanceIndex, IN ULONG EventDataSize, IN PVOID EventData)
Definition: wmilib.c:36
struct _WMILIB_CONTEXT * PWMILIB_CONTEXT
_Must_inspect_result_ _Inout_ PFLT_VOLUME _In_opt_ PCUNICODE_STRING InstanceName
Definition: fltkernel.h:1162
#define OUT
Definition: typedefs.h:39
unsigned int ULONG
Definition: retypes.h:1
_In_ ULONG InstanceCount
Definition: iofuncs.h:1319
_In_ PUNICODE_STRING RegistryPath
Definition: wmip.h:27
PWMI_QUERY_REGINFO QueryWmiRegInfo
Definition: wmilib.h:86
NTSTATUS(NTAPI * PWMI_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)
Definition: wmilib.h:26
IN BOOLEAN OUT PSTR Buffer
Definition: progress.h:34
PWMI_SET_DATABLOCK SetWmiDataBlock
Definition: wmilib.h:88
NTSTATUS(NTAPI * PWMI_FUNCTION_CONTROL)(IN OUT PDEVICE_OBJECT DeviceObject, IN OUT PIRP Irp, IN ULONG GuidIndex, IN WMIENABLEDISABLECONTROL Function, IN BOOLEAN Enable)
Definition: wmilib.h:35
_WMIENABLEDISABLECONTROL
Definition: wmilib.h:7
enum _SYSCTL_IRP_DISPOSITION * PSYSCTL_IRP_DISPOSITION
LPCGUID Guid
Definition: wmilib.h:20
ULONG InstanceCount
Definition: wmilib.h:21