// wdfwmi.h
typedef enum _WDF_WMI_PROVIDER_FLAGS {
WdfWmiProviderEventOnly = 0x0001,
WdfWmiProviderExpensive = 0x0002,
WdfWmiProviderTracing = 0x0004,
WdfWmiProviderValidFlags = WdfWmiProviderEventOnly | WdfWmiProviderExpensive | WdfWmiProviderTracing
} WDF_WMI_PROVIDER_FLAGS;
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF only]
The WDF_WMI_PROVIDER_FLAGS enumeration defines configuration flags for a driver's WMI data provider.
WdfWmiProviderEventOnly:0x0001WMI clients can receive notification of WMI events, but they cannot query or set instance data. The driver can call WdfWmiInstanceFireEvent, but it does not provide any instance-specific callback functions.
WdfWmiProviderExpensive:0x0002Collecting the provider's data can potentially affect the driver's performance, so the driver will not collect data unless a WMI client has registered to use it. The framework calls the driver's EvtWmiProviderFunctionControl callback function, passing the WdfWmiInstanceControl value (from the WDF_WMI_PROVIDER_CONTROL enumeration), to inform the driver to begin collecting data. If the driver does not provide an EvtWmiProviderFunctionControl callback function, it can call WdfWmiProviderIsEnabled.
WdfWmiProviderTracing:0x0004The WMI data provider supports WMI event tracing. The driver can obtain the tracing handle by calling WdfWmiProviderGetTracingHandle. If this flag is set, no other flags can be set.
WdfWmiProviderValidFlags:WdfWmiProviderEventOnly | WdfWmiProviderExpensive | WdfWmiProviderTracingThe bitwise OR of all flags. Drivers should not use this value.
The WDF_WMI_PROVIDER_FLAGS enumeration is used in the WDF_WMI_PROVIDER_CONFIG structure.
WdfWmiProviderGetTracingHandle