ReactOS 0.4.16-dev-106-g10b08aa
wmilib.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef __cplusplus
4extern "C" {
5#endif
6
11
18
19typedef struct _WMIGUIDREGINFO {
24
25typedef NTSTATUS
33
34typedef NTSTATUS
37 IN OUT PIRP Irp,
41
42typedef NTSTATUS
45 IN OUT PIRP Irp,
49 OUT PULONG InstanceLengthArray OPTIONAL,
52
53typedef NTSTATUS
56 IN OUT PIRP Irp,
63
64typedef NTSTATUS
67 IN OUT PIRP Irp,
72
73typedef NTSTATUS
76 IN OUT PIRP Irp,
82
83typedef struct _WMILIB_CONTEXT {
93
94#if (NTDDI_VERSION >= NTDDI_WIN2K)
95
100 IN OUT PIRP Irp,
104
106NTAPI
108 IN PWMILIB_CONTEXT WmiLibInfo,
110 IN OUT PIRP Irp,
111 OUT PSYSCTL_IRP_DISPOSITION IrpDisposition);
112
114NTAPI
120 IN PVOID EventData);
121
122#endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
123
124#ifdef __cplusplus
125}
126#endif
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
_In_ CDROM_SCAN_FOR_SPECIAL_INFO _In_ PCDROM_SCAN_FOR_SPECIAL_HANDLER Function
Definition: cdrom.h:1156
Definition: bufpool.h:45
_In_ LPGUID _In_ ULONG InstanceIndex
Definition: classpnp.h:1251
_Out_ ULONG * RegFlags
Definition: classpnp.h:403
_In_ PIRP _In_ ULONG GuidIndex
Definition: classpnp.h:419
_In_ PIRP _In_ ULONG _In_ ULONG BufferAvail
Definition: classpnp.h:420
_In_ PIRP Irp
Definition: csq.h:116
#define BufferSize
Definition: mmc.h:75
#define NTSTATUS
Definition: precomp.h:21
_Must_inspect_result_ _Inout_ PFLT_VOLUME _In_opt_ PCUNICODE_STRING InstanceName
Definition: fltkernel.h:1163
Status
Definition: gdiplustypes.h:25
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:142
LPCGUID Guid
Definition: wmilib.h:20
ULONG Flags
Definition: wmilib.h:22
ULONG InstanceCount
Definition: wmilib.h:21
PWMI_SET_DATAITEM SetWmiDataItem
Definition: wmilib.h:89
PWMI_EXECUTE_METHOD ExecuteWmiMethod
Definition: wmilib.h:90
PWMI_QUERY_DATABLOCK QueryWmiDataBlock
Definition: wmilib.h:87
PWMIGUIDREGINFO GuidList
Definition: wmilib.h:85
PWMI_SET_DATABLOCK SetWmiDataBlock
Definition: wmilib.h:88
PWMI_QUERY_REGINFO QueryWmiRegInfo
Definition: wmilib.h:86
ULONG GuidCount
Definition: wmilib.h:84
PWMI_FUNCTION_CONTROL WmiFunctionControl
Definition: wmilib.h:91
#define OPTIONAL
Definition: typedefs.h:41
uint32_t * PULONG
Definition: typedefs.h:59
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
char CCHAR
Definition: typedefs.h:51
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING MofResourceName
Definition: wdfdevice.h:2464
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
Definition: wdfdriver.h:215
WDF_EXTERN_C_START typedef _Must_inspect_result_ _In_ WDFDRIVER _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ PDEVICE_OBJECT _In_opt_ PDEVICE_OBJECT _In_opt_ PDEVICE_OBJECT Pdo
Definition: wdfminiport.h:72
_Must_inspect_result_ _In_ WDFOBJECT _In_ CONST GUID * Guid
Definition: wdfobject.h:762
_In_ WDFREQUEST _In_ NTSTATUS _In_ CCHAR PriorityBoost
Definition: wdfrequest.h:1016
_In_ ULONG OutBufferSize
Definition: wdfwmi.h:87
_In_ ULONG _Out_ PULONG BufferUsed
Definition: wdfwmi.h:92
_In_ ULONG InBufferSize
Definition: wdfwmi.h:106
_In_ ULONG MethodId
Definition: wdfwmi.h:142
_In_ ULONG DataItemId
Definition: wdfwmi.h:123
_Must_inspect_result_ _In_ WDFWMIINSTANCE _In_opt_ ULONG EventDataSize
Definition: wdfwmi.h:617
NTSTATUS NTAPI WmiSystemControl(IN PWMILIB_CONTEXT WmiLibInfo, IN PDEVICE_OBJECT DeviceObject, IN OUT PIRP Irp, OUT PSYSCTL_IRP_DISPOSITION IrpDisposition)
struct _WMIGUIDREGINFO * PWMIGUIDREGINFO
NTSTATUS NTAPI WmiCompleteRequest(IN PDEVICE_OBJECT DeviceObject, IN OUT PIRP Irp, IN NTSTATUS Status, IN ULONG BufferUsed, IN CCHAR PriorityBoost)
enum _WMIENABLEDISABLECONTROL WMIENABLEDISABLECONTROL
struct _WMILIB_CONTEXT WMILIB_CONTEXT
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
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
_SYSCTL_IRP_DISPOSITION
Definition: wmilib.h:12
@ IrpNotWmi
Definition: wmilib.h:15
@ IrpForward
Definition: wmilib.h:16
@ IrpNotCompleted
Definition: wmilib.h:14
@ IrpProcessed
Definition: wmilib.h:13
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
enum _WMIENABLEDISABLECONTROL * PWMIENABLEDISABLECONTROL
struct _WMIGUIDREGINFO WMIGUIDREGINFO
enum _SYSCTL_IRP_DISPOSITION SYSCTL_IRP_DISPOSITION
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
@ WmiEventControl
Definition: wmilib.h:8
@ WmiDataBlockControl
Definition: wmilib.h:9
NTSTATUS NTAPI WmiFireEvent(IN PDEVICE_OBJECT DeviceObject, IN LPCGUID Guid, IN ULONG InstanceIndex, IN ULONG EventDataSize, IN PVOID EventData)
Definition: wmilib.c:36
enum _SYSCTL_IRP_DISPOSITION * PSYSCTL_IRP_DISPOSITION
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
struct _WMILIB_CONTEXT * PWMILIB_CONTEXT
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_ ULONG InstanceCount
Definition: iofuncs.h:1323