3.2.4.3.11 GetAccountingClients (Opnum 17)
The GetAccountingClients method gets the names of all servers that are acting as accounting clients on the current server.
-
[id(11), helpstring("method GetAccountingClients")] HRESULT GetAccountingClients( [out] BSTR* pbstrClientIds );
pbstrClientIds: A pointer to a string that returns the machine names of all accounting clients, in the form of an AccountingClientList element (section 2.2.5.1).
Return Values: This method returns 0x00000000 for success, or a negative HRESULT value (in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.
-
Return value/code
Description
0x00000000
S_OK
Operation successful.
0xC1FF0210
WRM_ERR_CLIENTSTATUS_ACC_OFF
Accounting functionality is currently turned off on the accounting server. There are no clients logging data to this machine.
0xC1FF0211
WRM_ERR_CLIENTSTATUS_ACC_REMOTE
Accounting is currently being done on a remote machine. There are no clients logging data to this machine.
The GetAccountingClients method can be used to find the names of WSRM servers, acting as accounting clients, for which the current server is acting as an accounting server.
Note Remote accounting is not supported in a workgroup environment.
Additional IWRMAccounting interface methods are specified in section 3.2.4.3.