3.2.4.3.6 DeleteAccountingData (Opnum 12)
The DeleteAccountingData method deletes accounting data within a specified time period from the accounting database (section 3.2.1.2). If there is no accounting data present between the specified dates, the functions returns SUCCESS while no accounting data is deleted.
-
[id(6), helpstring("method DeleteAccountingData")] HRESULT DeleteAccountingData( [in] BSTR bstrStartingDate, [in] BSTR bstrEndingDate, [in] BSTR bstrMachineName );
bstrStartingDate: A string that specifies the starting date for the deletion, in date-and-time format (section 2.2.1.3). If this value is not in the correct format, the date range is ignored and the complete set of accounting data is deleted.
bstrEndingDate: A string that specifies the ending date for the deletion, in date-and-time format. If this value is not in the correct format, the date range is ignored and the complete set of accounting data is deleted.
bstrMachineName: A string that specifies the name of the machine whose accounting data is to be deleted. A default accounting database SHOULD<47> be defined.
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.
0x80070057
E_INVALIDARG
One or more arguments are invalid.<48>
0xC1FF01FA
WRM_ERR_WYUKON_NOT_CONNECTABLE
Cannot establish a connection to the accounting database.
0xC1FF01FB
WRM_ERR_WYUKON_CORRUPTED
Cannot establish a connection to the accounting database; either the database is in single user mode and already connected or it is in an invalid or corrupted state.
0xC1FF0203
WRM_ERR_JET_SERVER_TOO_BUSY
The server can service only one accounting request at a time.
Additional IWRMAccounting interface methods are specified in section 3.2.4.3.