ReactOS  0.4.15-dev-2355-gaf9df93
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 
23 NTAPI
25  IN PIRP Irp,
29 {
30  DPRINT1("WmiLib: WmiCompleteRequest() unimplemented\n");
31  return STATUS_SUCCESS;
32 }
33 
35 NTAPI
37  IN LPCGUID Guid,
40  IN PVOID EventData)
41 {
42  DPRINT1("WmiLib: WmiFireEvent() unimplemented\n");
43  return STATUS_SUCCESS;
44 }
45 
47 NTAPI
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 }
_In_ ULONG _Out_ PULONG BufferUsed
Definition: wdfwmi.h:92
#define IN
Definition: typedefs.h:39
_Must_inspect_result_ _In_ WDFWMIINSTANCE _In_opt_ ULONG EventDataSize
Definition: wdfwmi.h:615
NTSTATUS NTAPI WmiSystemControl(IN PWMILIB_CONTEXT WmiLibInfo, IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, OUT PSYSCTL_IRP_DISPOSITION IrpDisposition)
Definition: wmilib.c:48
LONG NTSTATUS
Definition: precomp.h:26
_In_ LPGUID _In_ ULONG InstanceIndex
Definition: classpnp.h:1250
NTSTATUS NTAPI WmiCompleteRequest(IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp, IN NTSTATUS Status, IN ULONG BufferUsed, IN CCHAR PriorityBoost)
Definition: wmilib.c:24
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
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
Status
Definition: gdiplustypes.h:24
char CCHAR
Definition: typedefs.h:51
_Must_inspect_result_ _In_ WDFOBJECT _In_ CONST GUID * Guid
Definition: wdfobject.h:760
#define DPRINT1
Definition: precomp.h:8
#define OUT
Definition: typedefs.h:40
unsigned int ULONG
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
#define STATUS_SUCCESS
Definition: shellext.h:65
enum _SYSCTL_IRP_DISPOSITION * PSYSCTL_IRP_DISPOSITION