3.2.4.7.7 MoveAfter (Opnum 13)

The MoveAfter method moves a specified resource group to a location just after a reference resource group.

 [id(7), helpstring("method MoveAfter")] HRESULT MoveAfter(
   [in] BSTR bstrPolicyName,
   [in] BSTR bstrResourceGroupName,
   [in] BSTR bstrRefResourceGroupName
 );

bstrPolicyName: The name of the policy in which resource group is to be moved.

If this parameter is NULL, E_INVALIDARG MUST be returned.

bstrResourceGroupName: The name of the resource group to be moved.

If this parameter is NULL, E_INVALIDARG MUST be returned.

bstrRefResourceGroupName: The name of the reference resource group.

Return Values: This method returns 0x00000000 for success or a negative HRESULT value (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.

Return value/code

Description

0x00000000

S_OK

Operation successful.

0x80070057

E_INVALIDARG

One or more arguments are invalid.

0xC1FF00E0

WRM_ERR_WSRM_RESERVED_POLICY

The specified policy is a built-in policy. It cannot be altered.

0xC1FF00C9

WRM_ERR_POLICYID_INVALID

The specified resource allocation policy does not exist.

0xC1FF012E

WRM_ERR_RESOURCEGROUPID_INVALID

The specified process matching criteria (PMC) does not exist.

Additional IWRMPolicy interface methods are specified in section 3.2.4.7.