4.1.7 Create a Custom Resource Allocation Policy

 The following sequence of WSRM client actions can be used to create a custom RAP:

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

  2. Get a pointer to the IWRMPolicy interface.

  3. Call the CreatePolicy method with the parameter bstrPolicyInfo set to the sample RAP string described in section 4.2.18.

  4. Release the pointer to the interface.