SubmitAccountChargeWithLength
Updates the account of a bindery object (For cross-platform functionality, see Developing NLMs with Cross-Platform Functions ( NDK: NLM Development Concepts, Tools, and Functions) and call NWSubmitAccountCharge)
#include <\nlm\nit\nwaccntg.h> int SubmitAccountChargeWithLength ( WORD binderyObjectType, char *binderyObjectName, WORD serviceType, long chargeAmount, long cancelHoldAmount, WORD commentType, void *commentData, WORD commentLength);
SubmitAccountChargeWithLength is identical to SubmitAccountCharge, except that it includes a commentLength parameter. This parameter allows the use of binary data for the commentData parameter ( SubmitAccountCharge expects a NULL-terminated string for commentData).
This function charges an object’s account balance and relinquishes a hold against the object’s account balance. The function can also write a note about the transaction in an audit record (optional). The charge and hold amounts do not have to be the same.
The binderyObjectType and binderyObjectName parameters must uniquely identify the bindery object and must not contain wildcard characters. The binderyObjectName parameter is a NULL-terminated string (maximum 48 characters, including the NULL terminator). Only printable characters can be used. Slashes, backslashes, colons, semicolons, commas, spaces, asterisks, and question marks are prohibited.
The serviceType parameter contains the specific type of service for which the charge is made. External servers should use their object type. If a server provides several different services, and no reasonable object type equivalents exist for these services, the vendor should apply to Novell for a service type. Usually, however, the server should use its object type and distinguish the type of service being charged for in the comment field of the charge record. (See Object Type.
The commentType parameter contains the type of the comment in the comment parameter. Comment types are administered by Novell and are listed below.
Developers should contact Novell for unique comment types. Comment types greater than 0x8000 are reserved for experimental purposes. The description is located in the NET$REC.DAT file.
The comment is the entry that the value-added server makes in the audit record. This audit record is contained in the SYS:SYSTEM\NET$ACCT.DAT file.