3.2.4.3.13 CheckAccountingConnection (Opnum 19)
The CheckAccountingConnection method determines the status of the connection to the accounting server.
Note This method is expected to be called remotely by the WSRM management service. In a remote accounting scenario, this method is called by the accounting client's WSRM service to check the connection status. A WSRM client SHOULD NOT call this method.
-
[id(13), helpstring("method CheckAccountingConnection")] HRESULT CheckAccountingConnection();
This method has no parameters.
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.
0xC1FF0209
WRM_ERR_ACC_DISABLED_FOR_REMOTE_CLIENT
Accounting is disabled on the remote accounting server.
0xC1FF020A
WRM_ERR_ACC_CLIENT_CONN_TERMINATED
Connection to remote accounting server failed. The remote connection has been terminated by the accounting server because the accounting functionality of the accounting client was disabled.<54>
0xC1FF020E
WRM_ERR_ACC_NO_CONNECTION
The operation failed. There is no existing connection to the remote database server.
It is possible for multiple WSRM servers to have a common accounting database server. <55>
Note Remote accounting is not supported in a workgroup environment.
Additional IWRMAccounting interface methods are specified in section 3.2.4.3.