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:
Connect to the WSRM server by creating a ResourceManager COM object.
Get a pointer to the IWRMConfig interface.
Call the EnableDisable method with the following parameters:
bEnableDisable set to 1 to indicate TRUE.
enumConfigType set to CONFIGTYPE_ACCOUNTING.
Release the pointer to the interface.