Share via


IWMIExtension::WMIObjectPath property

The WMIObjectPath property contains a moniker that is the object path to the WMI computer object. This property is read-only.

Note  For more information about support and installation of this component on a specific operating system, see Operating System Availability of WMI Components.

This property is read-only.

Syntax

HRESULT get_WMIObjectPath(
  [out]  BSTR pbstrWMIObjectPath
);

Property value

A moniker that is the object path to the WMI computer object.

Error codes

An HRESULT object that contains the status of the method call. The status is always WBEM_NO_ERROR.

Remarks

This is a dual-language interface. You must query the ADSI object for the IWMIExtension interface before you can access this property. 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

See also

Accessing a Remote WMI Win32_ComputerSystem Object Path