Returns the actual space limitations for a directory.
#include <nwdirect.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY( NWCCODE )NWGetDirSpaceLimitList2 (
NWCONN_HANDLE conn,
NWDIR_HANDLE dirHandle,
NW_LIMIT_LIST N_FAR *limitList);
uses calwin32
Function NWGetDirSpaceLimitList2
(conn : NWCONN_HANDLE;
dirHandle : NWDIR_HANDLE;
Var limitList : NW_LIMIT_LIST
) : NWCCODE;
(IN) Specifies the NetWare server connection handle.
(IN) Specifies the directory handle pointing to the desired directory.
(OUT) Points to NW_LIMIT_LIST.
These are common return values; see Return Values (Return Values for C) for more information.
To find the actual amount of space available to a directory, scan all of the current fields and use the smallest one. You must omit values of 0x7FFFFFFF and convert values that are larger than 0x7FFFFFFF to zero. If no entries are returned, no space restrictions exist for the specified directory.
All restrictions are returned in units of 4K blocks.
NOTE:If you use this function in a loop on an NSS volume, server utilization can rise to 100% which causes a denial of service to connections. You need to limit the number of quick calls to this function to under 200 and then let the server utilization drop before calling another set.
Server utilization is not affected by numerous quick calls to this function on traditional volumes.