NWGetAccountStatus
Returns the account status of a NetWare® server bindery or NDS™ object including its balance, credit limit, and holds
#include <nwacct.h> or #include <nwcalls.h> NWCCODE N_API NWGetAccountStatus ( NWCONN_HANDLE conn, nuint16 objType, const nstr8 N_FAR *objName, pnint32 balance, pnint32 limit, HOLDS_STATUS N_FAR *holds);
uses calwin32 Function NWGetAccountStatus (conn : NWCONN_HANDLE; objType : nuint16; const objName : pnstr8; balance : pnint32; limit : pnint32; Var holds : HOLDS_STATUS ) : NWCCODE;
These are common return values; see Return Values (Return Values for C) for more information.
NWGetAccountStatus queries a NetWare server’s Bindery or Directory bindery context for the current account status of a specified object by passing the object name and type. NWGetAccountStatus returns the object’s balance, limit and holds.
balance contains the object’s account balance, usually in some established monetary unit such as cents.
holds lists servers calling NWSubmitAccountHold against the object and the amount reserved by each value-added server. holds also lists the object ID number of a value-added server calling NWSubmitAccountHold against the object. Up to 16 servers can place holds on the account at one time. Multiple holds from the same server are combined. Each server hold is made up of two fields: (1) the object ID of the server placing the hold, and (2) the amount of the server’s hold.
The ACCOUNT_SERVERS property on the server must contain the object ID of the requesting server. Otherwise, NWSubmitAccountHold will return NO_ACCOUNTING_PRIVILEGES. The user must have an ACCOUNT_BALANCE property on the NetWare server or NWSubmitAccountHold will return LOGIN_DENIED_NO_ACCOUNT_BALANCE.