3.2.4.3.1 CreateAccountingDb (Opnum 7)

The CreateAccountingDb method creates the database for accounting data.<40>

 [id(1), helpstring("method CreateAccountingDb")] HRESULT CreateAccountingDb(
   [in] BSTR bstrServerName,
   [in] BOOL bWindowsAuth,
   [in] BSTR bstrUserName,
   [in] BSTR bstrPasswd
 );

bstrServerName: Name of the server where the accounting database MUST be created.

bWindowsAuth: This parameter MUST be ignored.

bstrUserName: User name for creating the database.

bstrPasswd: Password of the user.

Return Values: This method returns 0x00000000 for success, or a negative HRESULT value (shown in the following table or in [MS-ERREF] section 2.1.1) if an error occurs.

Return value/code

Description

0x00000000

S_OK

Operation is successful.

0xC1FF01F7

WRM_ERR_ACCOUNTING_FAILED

WSRM encountered an error in accounting.

Additional IWRMAccounting interface methods are specified in section 3.2.4.3.