ReactOS 0.4.16-dev-106-g10b08aa
fxwmiproviderum.cpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxWmiProviderUm.cpp
8
9Abstract:
10
11 This module implements the FxWmiProvider object
12
13Author:
14
15
16
17
18Environment:
19
20 User mode only
21
22Revision 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
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{
101}
102
103VOID
106 )
107{
109}
110
111ULONG
114 )
115{
117 return ((ULONG) -1);
118}
119
125 )
126{
128 return NULL;
129}
130
136 )
137{
139 return NULL;
140}
141
147 )
148{
151}
152
153ULONG
155 VOID
156 )
157{
159 return ((ULONG) -1);
160}
161
162#pragma warning(pop)
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
@ Update
Definition: registry.c:565
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)
FxWmiProvider(__in PFX_DRIVER_GLOBALS FxDriverGlobals, __in PWDF_WMI_PROVIDER_CONFIG Config, __in CfxDevice *Device)
_Must_inspect_result_ FxWmiInstance * GetInstanceReferencedLocked(__in ULONG Index, __in PVOID Tag)
ULONG GetInstanceIndex(__in FxWmiInstance *Instance)
_Must_inspect_result_ NTSTATUS FunctionControl(__in WDF_WMI_PROVIDER_CONTROL Control, __in BOOLEAN Enable)
virtual BOOLEAN Dispose(VOID)
_Must_inspect_result_ NTSTATUS AddInstanceLocked(__in FxWmiInstance *Instance, __in BOOLEAN NoErrorIfPresent, __out PBOOLEAN Update, __in AddInstanceAction Action=AddInstanceToTail)
VOID RemoveInstance(__in FxWmiInstance *Instance)
ULONG GetRegistrationFlagsLocked(VOID)
_Must_inspect_result_ NTSTATUS AddInstance(__in FxWmiInstance *Instance, __in BOOLEAN NoErrorIfPresent=FALSE)
_Must_inspect_result_ FxWmiInstance * GetInstanceReferenced(__in ULONG Index, __in PVOID Tag)
#define __in
Definition: dbghelp.h:35
#define __in_opt
Definition: dbghelp.h:38
#define __out
Definition: dbghelp.h:62
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
@ FX_TYPE_WMI_PROVIDER
Definition: fxtypes.h:49
#define _Must_inspect_result_
Definition: ms_sal.h:558
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:142
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:239
unsigned char * PBOOLEAN
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
VOID UfxVerifierTrapNotImpl()
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_CHILD_LIST_CONFIG Config
Definition: wdfchildlist.h:476
_In_ WDFCOLLECTION _In_ ULONG Index
_Must_inspect_result_ _In_ WDFDEVICE _In_ BOOLEAN _In_opt_ PVOID Tag
Definition: wdfdevice.h:4065
_In_ WDFIOTARGET _In_ _Strict_type_match_ WDF_IO_TARGET_SENT_IO_ACTION Action
Definition: wdfiotarget.h:510
_In_ WDF_WMI_PROVIDER_CONTROL Control
Definition: wdfwmi.h:166
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_WMI_INSTANCE_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_opt_ WDFWMIINSTANCE * Instance
Definition: wdfwmi.h:481
WDF_EXTERN_C_START enum _WDF_WMI_PROVIDER_CONTROL WDF_WMI_PROVIDER_CONTROL
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_WMI_PROVIDER_CONFIG WmiProviderConfig
Definition: wdfwmi.h:358
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_WMI_PROVIDER_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWMIPROVIDER * WmiProvider
Definition: wdfwmi.h:363
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_WMI_PROVIDER_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES ProviderAttributes
Definition: wdfwmi.h:360
ActualNumberDriverObjects * sizeof(PDRIVER_OBJECT)) PDRIVER_OBJECT *DriverObjectList