Expand Minimize

MSFT_WmiProvider_NewQuery_Pre class

The MSFT_WmiProvider_NewQuery_Pre event class represents an event generated immediately prior to calling the provider's implementation of IWbemEventProviderQuerySink::NewQuery.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties are listed in alphabetic order, not MOF order.

Syntax

class MSFT_WmiProvider_NewQuery_Pre : MSFT_WmiProvider_OperationEvent_Pre
{
  string HostingGroup;
  uint32 HostingSpecification;
  string Locale;
  string Namespace;
  string Provider;
  string Query;
  uint32 QueryId;
  string QueryLanguage;
  uint8  SECURITY_DESCRIPTOR[];
  uint64 TIME_CREATED;
  string TransactionIdentifier;
  string User;
};

Members

The MSFT_WmiProvider_NewQuery_Pre class has these types of members:

Properties

The MSFT_WmiProvider_NewQuery_Pre class has these properties.

HostingGroup
Data type: string
Access type: Read-only

Second component of the __Win32Provider HostingModel property when the hosting model is one of LocalSystemHost, LocalSystemHostOrSelfHost, NetworkServiceHost, or LocalServiceHost. The hosting group defines a particular instantiation of a WMI provider host. Providers that share the same hosting model and hosting group share the same surrogate process.

HostingSpecification
Data type: uint32
Access type: Read-only

The first component of the __Win32ProviderHostingModel property. For the possible values of this property, see the HostingSpecification property in the MSFT_Providers class.

Locale
Data type: string
Access type: Read-only

Particular instantiation of a provider instance when the provider is configured for per local initialization.

Namespace
Data type: string
Access type: Read-only

Namespace associated with a particular provider instance.

Provider
Data type: string
Access type: Read-only

Name associated with a particular provider instance. The name is identical to the __Win32Provider property.

Query
Data type: string
Access type: Read-only

Event query filter, which was registered by a logical consumer.

QueryId
Data type: uint32
Access type: Read-only

Holds the WMI-generated identifier for the query. During a later cancellation, the provider can track which query was canceled.

QueryLanguage
Data type: string
Access type: Read-only

Language of the query filter. For this version of WMI, it always WQL.

SECURITY_DESCRIPTOR
Data type: uint8 array
Access type: Read-only

Descriptor used by the event provider to determine which users can receive the event. This property is inherited from __Event.

TIME_CREATED
Data type: uint64
Access type: Read-only

Unique value that indicates the time at which the event was generated. This property is inherited from __Event.

For more information about using uint64 values in scripts, see Scripting in WMI.

TransactionIdentifier
Data type: string
Access type: Read-only

Internal use only. The current value is "{00000000-0000-0000-0000-000000000000}".

User
Data type: string
Access type: Read-only

Particular provider instance, configured for per user initialization.

Examples

For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.

For C++ code examples, see WMI C++ Application Examples.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

System.mof

See also

MSFT_Providers
WMI Troubleshooting Classes

 

 

Show:
© 2014 Microsoft. All rights reserved.