IWMIExtension::GetWMIObject method
The GetWMIObject method of IWMIExtension returns the Win32_ComputerSystem object identified by the ADSI computer object.
Note For more information about support and installation of this component on a specific operating system, see Operating System Availability of WMI Components.
Syntax
HRESULT GetWMIObject(
[out] ISWbemObject **ppWMIObject
);
Parameters
- ppWMIObject [out]
The Win32_ComputerSystem object identified by the ADSI computer object. If this parameter is NULL, the method returns wbemErrInvalidParameter (0x80041008).
Return value
An HRESULT object that contains the status of the method call.
Remarks
This is a dual-language interface. You must query the ADSI object for the IWMIExtension interface before use this method. For more information about how to use the dual interface with C++, see Automation Interfaces.
Examples
For C++ code examples, see WMI C++ Application Examples.
For script code examples, see WMI Tasks for Scripts and Applications and the TechNet ScriptCenter Script Repository.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows Server 2003 |
End of client support |
Windows XP |
Header |
Wbemuuid.h |
Library |
Wbemuuid.lib |
Type library |
Wbemadsi.tlb |
DLL |
Wbemads.dll |