ReactOS  0.4.15-dev-1638-gc0caa5c
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,
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
_In_ ULONG _Out_ PULONG BufferUsed
Definition: wdfwmi.h:92
enum _WMIENABLEDISABLECONTROL WMIENABLEDISABLECONTROL
#define IN
Definition: typedefs.h:39
_Must_inspect_result_ _In_ WDFWMIINSTANCE _In_opt_ ULONG EventDataSize
Definition: wdfwmi.h:615
_In_ CDROM_SCAN_FOR_SPECIAL_INFO _In_ PCDROM_SCAN_FOR_SPECIAL_HANDLER Function
Definition: cdrom.h:1154
IN BOOLEAN OUT PSTR Buffer
Definition: progress.h:34
enum _WMIENABLEDISABLECONTROL * PWMIENABLEDISABLECONTROL
unsigned char * PUCHAR
Definition: retypes.h:3
LONG NTSTATUS
Definition: precomp.h:26
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:140
_Must_inspect_result_ _In_ PDRIVER_OBJECT _In_ PCUNICODE_STRING RegistryPath
Definition: wdfdriver.h:213
_In_ LPGUID _In_ ULONG InstanceIndex
Definition: classpnp.h:1250
PWMI_QUERY_DATABLOCK QueryWmiDataBlock
Definition: wmilib.h:87
PWMI_SET_DATAITEM SetWmiDataItem
Definition: wmilib.h:89
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
_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
_In_ WDFREQUEST _In_ NTSTATUS _In_ CCHAR PriorityBoost
Definition: wdfrequest.h:1011
_In_ PIRP Irp
Definition: csq.h:116
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:64
struct _WMIGUIDREGINFO WMIGUIDREGINFO
PWMI_FUNCTION_CONTROL WmiFunctionControl
Definition: wmilib.h:91
unsigned char BOOLEAN
_Out_ ULONG * RegFlags
Definition: classpnp.h:403
_In_ PIRP _In_ ULONG GuidIndex
Definition: classpnp.h:418
Definition: bufpool.h:45
struct _WMIGUIDREGINFO * PWMIGUIDREGINFO
ULONG GuidCount
Definition: wmilib.h:84
Status
Definition: gdiplustypes.h:24
_In_ ULONG DataItemId
Definition: wdfwmi.h:123
_In_ ULONG InBufferSize
Definition: wdfwmi.h:106
enum _SYSCTL_IRP_DISPOSITION SYSCTL_IRP_DISPOSITION
ULONG Flags
Definition: wmilib.h:22
_In_ ULONG OutBufferSize
Definition: wdfwmi.h:87
char CCHAR
Definition: typedefs.h:51
_Must_inspect_result_ _In_ WDFOBJECT _In_ CONST GUID * Guid
Definition: wdfobject.h:760
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
_In_ ULONG MethodId
Definition: wdfwmi.h:142
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:418
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING MofResourceName
Definition: wdfdevice.h:2461
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:41
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:40
unsigned int ULONG
Definition: retypes.h:1
_In_ ULONG InstanceCount
Definition: iofuncs.h:1319
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
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
#define BufferSize
Definition: mmc.h:75
enum _SYSCTL_IRP_DISPOSITION * PSYSCTL_IRP_DISPOSITION
LPCGUID Guid
Definition: wmilib.h:20
ULONG InstanceCount
Definition: wmilib.h:21