Windows Management Instrumentation (WMI) and Performance Counters (Unmanaged API Reference)

The .NET Framework WMI and Performance Counters unmanaged API consists of a set of functions that wrap calls to the native Windows Management Instrumentation API. It allows you to develop tools and libraries that manage and monitor remote computer systems.

Note

This API is for internal use only. It's not intended for use from developer code.

The API includes the following functions:

Function Description
BeginEnumeration function Resets the enumerator to the beginning of an enumeration of WMI object properties.
BeginMethodEnumeration function Begins an enumeration of the methods available for an object.
BlessIWbemServices function Indicates whether the user credentials permit access to a specified IWbemServices class.
BlessIWbemServicesObject function Indicates whether the user credentials permit access to a specified IWbem service object.
Clone function Returns a new object that is a complete clone of the current object.
CloneEnumWbemClassObject function Makes a logical copy of an enumerator, retaining its current position in an enumeration.
CompareTo function Compares an object to another Windows management object.
ConnectServerWmi function Creates a connection through DCOM to a WMI namespace on a specified computer.
CreateClassEnumWmi function Returns an enumerator for all classes that satisfy the specified selection criteria.
CreateInstanceEnumWmi function Returns an enumerator that returns the instances of a specified class that meet specified selection criteria.
Delete function Deletes a specified property from a class definition and all of its qualifiers.
DeleteMethod function Deletes a specified method from a CIM class definition.
EndEnumeration function Terminates an enumeration sequence.
EndMethodEnumeration function Terminates an enumeration sequence started by calling the BeginMethodEnumeration function.
ExecNotificationQueryWmi function Executes a query to receive events.
ExecQueryWmi function Executes a query to retrieve objects.
FormatFromRawValue function Converts one raw performance data value to the specified format, or two raw performance data values if the format conversion is time-based.
Get function Retrieves a specified property value if it exists.
GetCurrentApartmentType function Retrieves the type of apartment in which the caller is executing.
GetDemultiplexedStub function Creates an object forwarder sink to assist a client in receiving asynchronous calls from Windows Management.
GetErrorInfo function Retrieves error information from the previous function call.
GetMethod function Retrieves information about the specified method.
GetMethodOrigin function Determines the class in which a method is declared.
GetMethodQualifierSet function Retrieves the qualifier set for a particular method.
GetNames function Retrieves either a subset or all of the names of the properties of an object.
GetObjectText function Returns a textual rendering of an object in the MOF syntax.
GetPropertyHandle function Returns a unique handle that identifies a property.
GetPropertyOrigin function Determines the class in which a property is declared.
GetPropertyQualifierSet function Retrieves the qualifier set for a particular property.
GetQualifierSet function Retrieves the qualifier set for a class instance or a class definition.
InheritsFrom function Determines whether the current class or instance derives from a specified parent class.
Initialize function Performs WMI initialization.
Next function Retrieves the next property in an enumeration.
NextMethod function Retrieves the next method in an enumeration.
Put function Sets a named property to a new value.
PutClassWmi function Creates a new class or updates an existing one.
PutInstanceWmi function Creates or updates an instance of an existing class. The instance is written to the WMI repository.
PutMethod function Creates a method.
QualifierSet_BeginEnumeration function Resets an enumerator of the qualifiers of an object to the beginning of the enumeration.
QualifierSet_Delete function Deletes a specified qualifier by name.
QualifierSet_EndEnumeration function Terminates the enumeration begun with a call to the QualifierSet_BeginEnumeration function.
QualifierSet_Get function Gets the specified named qualifier.
QualifierSet_GetNames function Retrieves the names of all qualifiers or of specified qualifiers that are available from the current object or property.
QualifierSet_Next function Retrieves the next qualifier in an enumeration that started with a call to the QualifierSet_BeginEnumeration function.
QualifierSet_Put function Writes the named qualifier and value.
ResetSecurity function Assigns the supplied impersonation token to the current thread.
SetSecurity function Retrieves the impersonation token associated with the current thread.
SpawnDerivedClass function Creates a newly derived class object from a specified object.
SpawnInstance function Creates a new instance of a class.
VerifyClient function Ensures that the client key has the correct security.
WritePropertyValue function Writes a specified number of bytes to a property identified by a property handle.

See also