4.1.9 Create a Custom Process Matching Criteria

The following sequence of WSRM client actions can be used to create a custom process matching criteria (PMC):

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

  2. Get a pointer to the IWRMResourceGroup interface.

  3. Call the CreateResourceGroup method with the parameter bstrResourceGroupInfo set to the sample PMC string described in section 4.2.21.

  4. Release the pointer to the interface.