<div class="content"><p>The CreateAccountingDb method creates the database for
accounting data.<a id="Appendix_A_Target_40"></a><a aria-label="Product behavior note 40" href="1af5b971-a682-44a0-affe-c98947d5e7f7#Appendix_A_40" data-linktype="relative-path">&lt;40&gt;</a></p><dl>
<dd>
<div><pre> [id(1), helpstring(&#34;method CreateAccountingDb&#34;)] HRESULT CreateAccountingDb(
   [in] BSTR bstrServerName,
   [in] BOOL bWindowsAuth,
   [in] BSTR bstrUserName,
   [in] BSTR bstrPasswd
 );
</pre></div>
</dd></dl><p><b>bstrServerName: </b>Name of the server where the
accounting database MUST be created.</p><p><b>bWindowsAuth: </b>This parameter MUST be ignored.</p><p><b>bstrUserName: </b>User name for creating the
database.</p><p><b>bstrPasswd: </b>Password of the user.</p><p><b>Return Values: </b>This method returns 0x00000000
for success, or a negative <b>HRESULT</b> value (shown in the following table
or in <a href="../ms-erref/1bc92ddf-b79e-413c-bbaa-99a5281a6c90" data-linktype="relative-path">[MS-ERREF]</a>
section <a href="../ms-erref/705fb797-2175-4a90-b5a3-3918024b10b8" data-linktype="relative-path">2.1.1</a>)
if an error occurs.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Return value/code</p>
   </th>
   <th>
   <p>Description</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>0x00000000</p>
  <p>S_OK</p>
  </td>
  <td>
  <p>Operation is successful.</p>
  </td>
 </tr><tr>
  <td>
  <p>0xC1FF01F7</p>
  <p>WRM_ERR_ACCOUNTING_FAILED</p>
  </td>
  <td>
  <p>WSRM encountered an error in accounting.</p>
  </td>
 </tr></tbody></table>
</dd></dl><p>Additional <a href="d5942816-752f-480a-9712-38ef0a248b6a" data-linktype="relative-path">IWRMAccounting</a> interface
methods are specified in section 3.2.4.3.</p></div>