NWGetDirSpaceLimitList2

Returns the actual space limitations for a directory.

NetWare Server:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:File System

Syntax

   #include <nwdirect.h> 
   or 
   #include <nwcalls.h> 
    
   N_EXTERN_LIBRARY( NWCCODE )NWGetDirSpaceLimitList2  ( 
      NWCONN_HANDLE         conn,  
      NWDIR_HANDLE          dirHandle,  
      NW_LIMIT_LIST N_FAR  *limitList);
   

Delphi Syntax

   uses calwin32
   
   Function NWGetDirSpaceLimitList2 
     (conn : NWCONN_HANDLE;
      dirHandle : NWDIR_HANDLE;
      Var limitList : NW_LIMIT_LIST
   ) : NWCCODE;
   

Parameters

conn

(IN) Specifies the NetWare server connection handle.

dirHandle

(IN) Specifies the directory handle pointing to the desired directory.

limitList

(OUT) Points to NW_LIMIT_LIST.

Return Values

These are common return values; see Return Values (Return Values for C) for more information.

0x0000

SUCCESSFUL

Remarks

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.

NCP Calls

See Also

NWSetDirSpaceLimit