CIM_ResourcePoolConfigurationService 类的 RemoveResourcesFromResourcePool 方法
启动作业以从资源池中删除资源。
语法
uint32 RemoveResourcesFromResourcePool(
[in] CIM_LogicalDevice REF HostResources[],
[in] CIM_ResourcePool REF Pool,
[out] CIM_ConcreteJob REF Job
);
parameters
-
HostResources [in]
-
要从池中删除 的CIM_LogicalDevice 实例数组。
-
池 [in]
-
表示要从中删除资源的池 的CIM_ResourcePool 。
-
作业 [out]
-
如果作业 ) 完成,引用作业 (CIM_ConcreteJob可能为 null 。
返回值
成功时返回 0;否则,将返回错误。
-
作业已完成,无错误 (0)
-
不支持 (1)
-
未知 (2)
-
超时 (3)
-
失败 (4)
-
参数 (5) 无效
-
正在使用 (6)
-
池的 ResourceType 不正确 (7)
-
DMTF 保留 (.)
-
方法参数已选中 - 作业已启动 (4096)
-
不支持的大小 (4097)
-
方法保留 (4098..32767)
-
供应商特定 (32768..65535)
要求
要求 | 值 |
---|---|
最低受支持的客户端 |
Windows 8.1 |
最低受支持的服务器 |
Windows Server 2012 R2 |
命名空间 |
Root\virtualization\v2 |
MOF |
|
DLL |
|