勇芳软件工作室.汉化:  Windows Management Instrumentation > COM API for WMI > Interfaces > IWbemContext >

EndEnumeration Method

Previous pageReturn to chapter overviewNext page

描述

 

IWbemContext.EndEnumeration方法结束以IWbemContext.BeginEnumeration开头的枚举序列。此调用不是必需的,但它尽可能早地释放与枚举相关联的任何系统资源。

 

C++ 语法

 

HRESULT EndEnumeration();

 

PowerBASIC 语法

 

METHOD EndEnumeration ()

 

返回值

 

此方法返回一个HRESULT,指示方法调用的状态。下表列出了HRESULT中包含的值。

 

退货代码

描述

WBEM_S_NO_ERROR

通话成功。

WBEM_E_UNEXPECTED

此呼叫是在没有相应调用IWbemContext.BeginEnumeration的情况下进行的。

 

要求

 

客户

需要Windows Vista,Windows XP,Windows 2000 Professional,Windows NT Workstation 4.0 SP4及更高版本,Windows Me,Windows 98或Windows 95。

服务器

需要Windows Server 2008,Windows Server 2003,Windows 2000 Server或Windows NT Server 4.0 SP4及更高版本。

在Wbemcli.inc中声明。

DLL

需要Esscli.dll。

需要Fastprox.dll。

需要Framedyn.dll。

需要Wbemcomn.dll。

需要Wbemcore.dll。

需要Wbemess.dll。

需要Wmipjobj.dll。