ReactOS  0.4.15-dev-3456-g4a17d4b
fxwmiproviderum.cpp
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  FxWmiProviderUm.cpp
8 
9 Abstract:
10 
11  This module implements the FxWmiProvider object
12 
13 Author:
14 
15 
16 
17 
18 Environment:
19 
20  User mode only
21 
22 Revision History:
23 
24 
25 --*/
26 
27 #include <fxmin.hpp>
28 #include <wdfwmi.h>
29 #include <FxCallback.hpp>
30 #include <FxPackage.hpp>
31 #include <FxWmiIrpHandler.hpp>
32 #include <FxWmiProvider.hpp>
33 
34 #pragma warning(push)
35 #pragma warning(disable:4100) //unreferenced parameter
36 
38  __in PFX_DRIVER_GLOBALS FxDriverGlobals,
41  ) :
44  FxDriverGlobals),
45  m_FunctionControl(FxDriverGlobals)
46 {
48 }
49 
51 {
53 }
54 
55 BOOLEAN
57  VOID
58  )
59 {
61  return FALSE;
62 }
63 
67  __in PFX_DRIVER_GLOBALS CallersGlobals,
68  __in WDFDEVICE Device,
71  __out WDFWMIPROVIDER* WmiProvider,
73  )
74 {
77 }
78 
83  __in BOOLEAN NoErrorIfPresent,
85  __in AddInstanceAction Action
86  )
87 {
90 }
91 
96  __in BOOLEAN NoErrorIfPresent
97  )
98 {
100  return STATUS_NOT_IMPLEMENTED;
101 }
102 
103 VOID
106  )
107 {
109 }
110 
111 ULONG
114  )
115 {
117  return ((ULONG) -1);
118 }
119 
123  __in ULONG Index,
124  __in PVOID Tag
125  )
126 {
128  return NULL;
129 }
130 
134  __in ULONG Index,
135  __in PVOID Tag
136  )
137 {
139  return NULL;
140 }
141 
143 NTSTATUS
147  )
148 {
150  return STATUS_NOT_IMPLEMENTED;
151 }
152 
153 ULONG
155  VOID
156  )
157 {
159  return ((ULONG) -1);
160 }
161 
162 #pragma warning(pop)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_WMI_PROVIDER_CONFIG WmiProviderConfig
Definition: wdfwmi.h:356
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList
#define __in_opt
Definition: dbghelp.h:38
WDF_EXTERN_C_START enum _WDF_WMI_PROVIDER_CONTROL WDF_WMI_PROVIDER_CONTROL
LONG NTSTATUS
Definition: precomp.h:26
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:140
ULONG GetRegistrationFlagsLocked(VOID)
VOID UfxVerifierTrapNotImpl()
return STATUS_NOT_IMPLEMENTED
#define FALSE
Definition: types.h:117
#define __out
Definition: dbghelp.h:62
_Must_inspect_result_ FxWmiInstance * GetInstanceReferenced(__in ULONG Index, __in PVOID Tag)
_Must_inspect_result_ NTSTATUS AddInstanceLocked(__in FxWmiInstance *Instance, __in BOOLEAN NoErrorIfPresent, __out PBOOLEAN Update, __in AddInstanceAction Action=AddInstanceToTail)
unsigned char BOOLEAN
_In_ WDF_WMI_PROVIDER_CONTROL Control
Definition: wdfwmi.h:166
ULONG GetInstanceIndex(__in FxWmiInstance *Instance)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_WMI_PROVIDER_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWMIPROVIDER * WmiProvider
Definition: wdfwmi.h:356
VOID RemoveInstance(__in FxWmiInstance *Instance)
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_WMI_PROVIDER_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES ProviderAttributes
Definition: wdfwmi.h:356
_Must_inspect_result_ FxWmiInstance * GetInstanceReferencedLocked(__in ULONG Index, __in PVOID Tag)
char * PBOOLEAN
Definition: retypes.h:11
virtual BOOLEAN Dispose(VOID)
FxWmiProvider(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PWDF_WMI_PROVIDER_CONFIG Config, __in CfxDevice *Device)
#define _Must_inspect_result_
Definition: ms_sal.h:558
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
_Must_inspect_result_ _In_ WDFDEVICE _In_ BOOLEAN _In_opt_ PVOID Tag
Definition: wdfdevice.h:4061
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_CHILD_LIST_CONFIG Config
Definition: wdfchildlist.h:474
_Must_inspect_result_ NTSTATUS FunctionControl(__in WDF_WMI_PROVIDER_CONTROL Control, __in BOOLEAN Enable)
_In_ WDFIOTARGET _In_ _Strict_type_match_ WDF_IO_TARGET_SENT_IO_ACTION Action
Definition: wdfiotarget.h:506
#define NULL
Definition: types.h:112
unsigned int ULONG
Definition: retypes.h:1
static _Must_inspect_result_ NTSTATUS _Create(__in PFX_DRIVER_GLOBALS CallersGlobals, __in WDFDEVICE Device, __in_opt PWDF_OBJECT_ATTRIBUTES ProviderAttributes, __in PWDF_WMI_PROVIDER_CONFIG WmiProviderConfig, __out WDFWMIPROVIDER *WmiProvider, __out FxWmiProvider **Provider)
_Must_inspect_result_ NTSTATUS AddInstance(__in FxWmiInstance *Instance, __in BOOLEAN NoErrorIfPresent=FALSE)
#define __in
Definition: dbghelp.h:35
IN PVOID Instance
Definition: pci.h:361