4.1.2 Export Selected Objects from the Configuration

 The following sequence of WSRM client actions can be used to export selected objects from the configuration:

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

  2. Get pointers to the IWRMMachineGroup, IResourceManager2 and other interfaces needed to gather the data of target objects.

  3. Gather the names and types of all target objects.

  4. Call the IResourceManager2 ExportObjects method with following parameters:

    • bstrObjectIds set to the ids of the objects to export.

    • enumObjectType set to the object type of the objects specified by bstrObjectIds.

    • pbstrObjectXml set to a previously-allocated buffer that will receive the XML for the target objects.

  5. Release all pointers to interfaces.