Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> usraccchgdel()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 UsrAccChgDel()
------------------------------------------------------------------------------
 Purpose:
 Delete a charge on a user's account.

 Syntax:
 bResult = UsrAccChgDel( lpszUserName,
           iServiceType, lAmount,
           iCommentType, lpszComment )

 Parameters:
 lpszUserName The user's name.
 iServiceType The service type (usually the object type of the account
              server).
 lAmount      The amount to cancel.
 iCommType    The comment type (see list in Chapter 2, Accounting
              Functions).
 lpszComment  The comment (see list in Chapter 2, Accounting Functions).

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 UsrAccChgDel() cancels a charge amount lAmount of type iServiceType
 previously reserved by an account server from the account of the
 specified user lpszUserName. The comment and comment type are for
 the audit trail.

 Returns TRUE if successful, or FALSE if an error occurs.

 Example:
 // To cancel a reserve of $5.00 placed against user KATIE by
 // the current file server, without making any comments:
 if ( UsrAccChgDel( "KATIE", 1, 500, 0, "" ) )
    ? "The reserve of $5.00 to user KATIE has been cancelled"
 endif

 Notes:
 Only the account server, Supervisor or an object equivalent to the
 account server or the Supervisor can cancel a charge.

See Also: UsrAccChgAdd() UsrAccResGet() FSAccSrvAdd()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson