WMI--Windows API--IEnumWbemClassObject

150 篇文章 0 订阅
18 篇文章 0 订阅

原文来自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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值