NWSubmitAccountCharge
Charges an amount against an object’s balance and either relinquishes a hold or reduces the hold by the charge amount
#include <nwacct.h> or #include <nwcalls.h> NWCCODE N_API NWSubmitAccountCharge ( NWCONN_HANDLE conn, nuint16 objType, const nstr8 N_FAR *objName, nuint16 serviceType, nint32 chargeAmt, nint32 holdCancelAmt, nuint16 noteType, const nstr8 N_FAR *note);
uses calwin32 Function NWSubmitAccountCharge (conn : NWCONN_HANDLE; objType : nuint16; objName : pnstr8; serviceType : nuint16; chargeAmt : nint32; holdCancelAmt : nint32; noteType : nuint16; note : pnstr8 ) : NWCCODE;
These are common return values; see Return Values (Return Values for C) for more information.
NWSubmitAccountCharge can write a note about the transaction in an audit record (optional). The charge and hold amounts do not have to be the same.
objType and objName must uniquely specify the object and cannot contain wildcard characters.
serviceType usually contains the object type of the charging account server. The common server object types are listed below:
Object Type High-Low Format
Job Server OT_JOB_SERVER 0x0500
Print Server OT_PRINT_SERVER 0x0700
Archive Server OT_ARCHIVE_SRVER 0x0900
noteType contains the number of the note type. Note types are administered by Novell®, Inc. and are listed below:
Note Description Type
1 Connect time charge
2 Disk storage charge
3 Log in note
4 Log out note
5 Account locked note
6 Server time modified note
Developers should contact Novell for unique note types. Note types greater than 8000H are reserved.
NOTE:note is the entry the value-added server makes in SYS:SYSTEM\NET$ACCT.DAT.