Determines the actual space limitations for a directory
#include <nwdirect.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY( NWCCODE )NWGetDirSpaceLimitList (
NWCONN_HANDLE conn,
NWDIR_HANDLE dirHandle,
pnuint8 returnBuf);
uses calwin32
Function NWGetDirSpaceLimitList
(conn : NWCONN_HANDLE;
dirHandle : NWDIR_HANDLE;
returnBuf : pnuint8
) : NWCCODE;
(IN) Specifies the NetWare server connection handle.
(IN) Specifies the directory handle pointing to the desired directory.
(OUT) Points to a 512-byte buffer containing the returned space 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.
NOTE:All restrictions are returned in units of 4K blocks.
returnBuf points to a buffer holding the space limit information for the directory specified by dirHandle. This information is given in the order specified by the NW_LIMIT_LIST structure.
IMPORTANT:returnBuf is not directly type compatible with the NW_LIMIT_LIST structure. It is highly recommended that instead of calling NWGetDirSpaceLimitList, applications now call NWGetDirSpaceLimitList2, which uses a pointer to an NW_LIMIT_LIST structure.