4.1.8 Set the Current Resource Policy

The following sequence of WSRM client actions can be used to set the current resource policy to an existing RAP:

  1. Connect to the WSRM server by creating a ResourceManager COM object.

  2. Get a pointer to the IWRMPolicy interface.

  3. Call the SetCurrentPolicy method with the following parameters:

    • bstrPolicyName set to "Equal_Per_Process".

    • enumManage set to MANUAL_ACTIVE_POLICY.

  4. Release the pointer to the interface.