共用方式為


AddResourcesToResourcePool method of the CIM_ResourcePoolConfigurationService class

Starts a job to add resources to a resource pool.

Syntax

uint32 AddResourcesToResourcePool(
  [in]  CIM_LogicalDevice REF HostResources[],
  [in]  CIM_ResourcePool  REF Pool,
  [out] CIM_ConcreteJob   REF Job
);

Parameters

HostResources [in]

An array that contains references to the resources to add to the resource pool.

Pool [in]

The resource pool that receives the added resoures.

Job [out]

A reference to the job for the operation. When the job is finished this parameter can be set to NULL.

Return value

The possible return values:

Job Completed with No Error

0

The job completed successfully.

Not Supported

1

Unknown

2

Timeout

3

Failed

4

Invalid Parameter

5

In Use

6

Incorrect ResourceType for the Pool

7

DMTF Reserved

8 4095

Method Parameters Checked - Job Started

4096

Size Not Supported

4097

Method Reserved

4098 32767

Vendor Specific

32768 65535

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\HyperVCluster\v2
MOF
WindowsHyperVCluster.V2.mof
DLL
VMMS.exe

See also

CIM_ResourcePoolConfigurationService