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

GetKeyList Method

Previous pageReturn to chapter overviewNext page

描述

 

IWbemPath.GetKeyList方法检索IWbemPathKeyList指针,以便可以访问单个密钥。

 

C++ 语法

 

HRESULT GetKeyList(

[out]  IWbemPathKeyList **pOut

);

 

PowerBASIC 语法

 

METHOD GetKeyList ( _

BYREF pOut AS IWbemPathKeyList _

) AS LONG

 

参数

 

pOut

 

指向IWbemPathKeyList对象。

 

返回值

 

此方法返回一个HRESULT,指示方法调用的状态。

 

退货代码

描述

S_OK

方法成功执行

WBEM_E_INVALID_PARAMETER

表示以下两个条件之一:

 

·参数为NULL。
·没有路径的类。

WBEM_E_OUT_OF_MEMORY

内存不足。

 

备注

 

Windows 2000 / NT:需要WMI SDK Update或Microsoft .NET Framework SDK。

 

Windows NT:需要Microsoft .NET Framework SDK。

 

要求

 

客户

需要Windows Vista或Windows XP。

服务器

需要Windows Server 2008或Windows Server 2003。

可再发行

需要Windows 2000和Windows NT上的WMI可重新分发组件版本1.0。在Windows NT上,它也需要Microsoft .NET Framework。

在Wmiutils.inc中声明。

DLL

需要Wmiutils.dll。