ReactOS 0.4.16-dev-91-g764881a
wmilib.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS WMI driver
3 * COPYRIGHT: GPL - See COPYING in the top level directory
4 * FILE: drivers/wmi/wmilib.c
5 * PURPOSE: Windows Management Instrumentation
6 * PROGRAMMERS: Aleksey Bragin (aleksey@reactos.org)
7 *
8 */
9
10/* INCLUDES *****************************************************************/
11
12#include <stdio.h>
13#include <ntddk.h>
14#include <wmilib.h>
15
16#define NDEBUG
17#include <debug.h>
18
19/* FUNCTIONS ****************************************************************/
20
21
25 IN PIRP Irp,
29{
30 DPRINT1("WmiLib: WmiCompleteRequest() unimplemented\n");
31 return STATUS_SUCCESS;
32}
33
40 IN PVOID EventData)
41{
42 DPRINT1("WmiLib: WmiFireEvent() unimplemented\n");
43 return STATUS_SUCCESS;
44}
45
50 IN PIRP Irp,
51 OUT PSYSCTL_IRP_DISPOSITION IrpDisposition)
52{
53 DPRINT1("WmiLib: WmiSystemControl() unimplemented\n");
54
55 /* Return info that Irp is not completed */
56 if (IrpDisposition)
57 *IrpDisposition = IrpNotCompleted;
58
59 return STATUS_SUCCESS;
60}
LONG NTSTATUS
Definition: precomp.h:26
#define DPRINT1
Definition: precomp.h:8
_In_ LPGUID _In_ ULONG InstanceIndex
Definition: classpnp.h:1251
_In_ PIRP Irp
Definition: csq.h:116
Status
Definition: gdiplustypes.h:25
#define STATUS_SUCCESS
Definition: shellext.h:65
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
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_ WDFOBJECT _In_ CONST GUID * Guid
Definition: wdfobject.h:762
_In_ WDFREQUEST _In_ NTSTATUS _In_ CCHAR PriorityBoost
Definition: wdfrequest.h:1016
_In_ ULONG _Out_ PULONG BufferUsed
Definition: wdfwmi.h:92
_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 PIRP Irp, OUT PSYSCTL_IRP_DISPOSITION IrpDisposition)
Definition: wmilib.c:48
NTSTATUS NTAPI WmiCompleteRequest(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN NTSTATUS Status, IN ULONG BufferUsed, IN CCHAR PriorityBoost)
Definition: wmilib.c:24
NTSTATUS NTAPI WmiFireEvent(IN PDEVICE_OBJECT DeviceObject, IN LPCGUID Guid, IN ULONG InstanceIndex, IN ULONG EventDataSize, IN PVOID EventData)
Definition: wmilib.c:36
@ IrpNotCompleted
Definition: wmilib.h:14
enum _SYSCTL_IRP_DISPOSITION * PSYSCTL_IRP_DISPOSITION