3.2.4.3.8 CancelAccountingQuery (Opnum 14)
The CancelAccountingQuery method cancels a previously-initiated query to the accounting database.
-
[id(8), helpstring("method CancelAccountingQuery")] HRESULT CancelAccountingQuery( [in] BOOL flag );
flag: A Boolean value that specifies FALSE to stop reading data from the database and release the connection, and TRUE to read all remaining data and release the connection.
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.
0xC1FF01FA
WRM_ERR_WYUKON_NOT_CONNECTABLE
Cannot establish a connection to the accounting database.<49>
The method CancelAccountingQuery cancels a query to the accounting database after previous calls to either of the methods ExecuteAccountingQuery (section 3.2.4.3.3) or GetRawAccountingData (section 3.2.4.3.4) and before a call to the method GetNextAccountingDataBatch (section 3.2.4.3.5). The availability of additional database data is indicated by the value returned in the pbIsThereMoreData parameter of each method.
Additional IWRMAccounting interface methods are specified in section 3.2.4.3.