4.1.1 Enable Accounting on a Local Machine

The following sequence of WSRM client actions can be used to enable accounting on a local machine:

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

  2. Get a pointer to the IWRMConfig interface.

  3. Call the EnableDisable method with the following parameters:

    • bEnableDisable set to 1 to indicate TRUE.

    • enumConfigType set to CONFIGTYPE_ACCOUNTING.

  4. Release the pointer to the interface.