GetAccountStatus
Returns the account status of a bindery object (For cross-platform functionality, see Developing NLMs with Cross-Platform Functions ( NDK: NLM Development Concepts, Tools, and Functions) and call NWGetAccountStatus)
#include <\nlm\nit\nwaccntg.h> int GetAccountStatus ( WORD binderyObjectType, char *binderyObjectName, long *balance, long *limit, long *holds);
GetAccountStatus queries a server’s bindery for the current account status of a specified bindery object by passing the binderyObjectType and binderyObjectName parameters and returning the balance, limit, and holds parameters.
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 that can be from 1 to 48 characters long, including the NULL terminator. Only printable characters can be used. Slashes, backslashes, colons, semicolons, commas, asterisks, spaces, and question marks are prohibited.
The value in the balance parameter represents the object’s account balance, usually in some monetary unit such as cents.
The holds parameter lists servers that have issued SubmitAccountHold calls against the object and the amount reserved by each value-added server. The holds parameter is also the object ID number of a value-added server that has issued a SubmitAccountHold call against the object. Up to 16 servers can place holds on the account at any one time. Multiple holds from the same server are combined. Each server hold is made up of two long fields:
A list of each server hold is returned in the account holds parameter.
The GetAccountStatus function does not record an audit record in the SYS:SYSTEM\NET$ACCT.DAT audit file.