NWGetDirSpaceLimitList

Determines 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 )NWGetDirSpaceLimitList  ( 
      NWCONN_HANDLE   conn,  
      NWDIR_HANDLE    dirHandle,  
      pnuint8         returnBuf);
   

Delphi Syntax

   uses calwin32 
    
   Function NWGetDirSpaceLimitList 
     (conn : NWCONN_HANDLE; 
      dirHandle : NWDIR_HANDLE; 
      returnBuf : pnuint8 
   ) : NWCCODE;
   

Parameters

conn

(IN) Specifies the NetWare server connection handle.

dirHandle

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

returnBuf

(OUT) Points to a 512-byte buffer containing the returned space 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.

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.

See Also

NWGetDirSpaceLimitList2, NWSetDirSpaceLimit