4.1.7 Create a Custom Resource Allocation Policy
The following sequence of WSRM client actions can be used to create a custom RAP:
Connect to the WSRM server by creating a ResourceManager COM object.
Get a pointer to the IWRMPolicy interface.
Call the CreatePolicy method with the parameter bstrPolicyInfo set to the sample RAP string described in section 4.2.18.
Release the pointer to the interface.