3.2.4.7.6 MoveBefore (Opnum 12)

The MoveBefore method moves a specified resource group to a location just before a reference resource group.

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

bstrPolicyName: The name of the policy in which the 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.

0xC1FF012E

WRM_ERR_RESOURCEGROUPID_INVALID

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

0xC1FF00C9

WRM_ERR_POLICYID_INVALID

The specified resource allocation policy does not exist.

0xC1FF00E0

WRM_ERR_WSRM_RESERVED_POLICY

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

0x80070057

E_INVALIDARG

One or more arguments are invalid.

Additional IWRMPolicy interface methods are specified in section 3.2.4.7.