原文来自MSDN Library for Visual Studio 2008 SP1,翻译部分仅为个人观点,想要看更多信息请看MSDN,如有版权问题请联系QQ 643166601,邮件643166601@qq.com
IEnumWbemClassObject Interface
The IEnumWbemClassObject interface is used to enumerate Common Information Model (CIM) objects and is similar to a standard COM enumerator.
这个IEnumWbemClassObject接口在通用信息模型(CIM)对象和一个简单的标准的COM枚举中使用。
An object of type IEnumWbemClassObject is received from calls to the following methods:
一个IEnumWbemClassObject类型的对象调用以下方法接收。
IWbemServices::ExecQuery
IWbemServices::CreateInstanceEnum
IWbemServices::CreateClassEnum
IWbemServices::ExecNotificationQuery
CIM objects are retrieved from an enumeration as objects of type IWbemClassObject by calling the Next method.
CIM对象通过调用Next方法取回一个枚举对象作为类型的IWbemClassObject。
You can reset an enumeration back to the beginning by calling the Reset method.
你可以调用Reset方法重置这个枚举返回到开始。
Methods in Vtable Order
The IEnumWbemClassObject interface inherits the methods of the IUnknown interface.
这个IEnumWbemClassObject 接口继承IUnknown接口的方法。
In addition, IEnumWbemClassObject defines the following methods.
此外,IEnumWbemClassObject定义了以下方法。
Method Description
Clone
Makes a copy of the enumerator.
制作一个枚举的拷贝。
Next
Retrieves the next object or objects in the enumeration starting from the current position.
取回下一个对象或在枚举中对象从当前位置的对象。
NextAsync
Retrieves the next object or objects using asynchronous integration with IWbemObjectSink.
Reset
Resets an enumeration sequence back to the beginning.
重置一个枚举队列回到开始。
Skip
Causes the enumeration to skip ahead so that future calls to the Next method retrieve objects one, or more, ahead of the current location in the enumeration.
枚举跳到之前调用Next方法取回对象一个或多个,在枚举中当前位置的之前。
Requirements
Client
Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation 4.0 SP4 and later, Windows Me, Windows 98, or Windows 95.
Server
Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0 SP4 and later.
Header
Declared in Wbemcli.h; include Wbemidl.h.
Library
Use Wbemuuid.lib.
DLL
Requires Fastprox.dll.
See Also
COM API for WMI
Enumerating WMI
Send comments about this topic to Microsoft
Build date: 8/15/2007