IWbemLocator interface
Use the IWbemLocator interface to obtain the initial namespace pointer to the IWbemServices interface for WMI on a specific host computer. You can access Windows Management itself using the IWbemServices pointer, which is returned by the IWbemLocator::ConnectServer method.
A client or provider that requires Windows Management services first obtains a pointer to the locator using CoCreateInstance or CoCreateInstanceEx, as specified in the COM documentation in the Microsoft Windows Software Development Kit (SDK). The IWbemLocator object is always an in-process COM server. The interface pointer to the desired namespace on the desired target computer is then obtained through the IWbemLocator::ConnectServer method, which is the only method on this interface.
Members
The IWbemLocator interface inherits from the IUnknown interface. IWbemLocator also has these types of members:
Methods
The IWbemLocator interface has these methods.
Method | Description |
---|---|
ConnectServer |
Connects to Windows Management on the specified computer. |
Requirements
Minimum supported client |
Windows Vista |
---|---|
Minimum supported server |
Windows Server 2008 |
Header |
|
IDL |
|
Library |
|
DLL |
|
CLSID |
CLSID_WbemAdministrativeLocator CLSID_WbemAuthenticatedLocator CLSID_WbemLocator CLSID_WbemUnauthenticatedLocator |
IID |
IID_IWbemLocator is defined as dc12a687-737f-11cf-884d-00aa004b2e24 |