NWSetObjectVolSpaceLimit

Sets an object’s disk space limit on a volume

Local Servers:blocking
Remote Servers:blocking
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:Volume

Syntax

   #include <nwvol.h> 
   or 
   #include <nwcalls.h> 
    
   N_EXTERN_LIBRARY( NWCCODE ) NWSetObjectVolSpaceLimit  ( 
      NWCONN_HANDLE   conn,  
      nuint16         volNum,  
      nuint32         objID,  
      nuint32         restriction); 
   
   

Pascal Syntax

   uses calwin32 
    
   Function NWSetObjectVolSpaceLimit 
     (conn : NWCONN_HANDLE; 
      volNum : nuint16; 
      objID : nuint32; 
      restriction : nuint32 
   ) : NWCCODE; 
   
   

Parameters

conn
(IN) Specifies the NetWare server connection handle.
volNum
(IN) Specifies the volume number for which to set the space limit.
objID
(IN) Specifies the object ID for which to limit the volume space.
restriction
(IN) Specifies the number of blocks (in 4KB sizes) to limit the volume space.

Return Values

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

0x0000

SUCCESSFUL

0x8801

INVALID_CONNECTION

0x890A

NLM_INVALID_CONNECTION

0x898C

NO_MODIFY_PRIVILEGES

0x8996

SERVER_OUT_OF_MEMORY

0x8998

VOLUME_DOES_NOT_EXIST

Remarks

The restrictions are returned in units of 4K blocks.

NOTE:If the restriction equals 0x40000000, the object has no restrictions.

NCP Calls

See Also

NWGetExtendedVolumeInfo, NWGetObjDiskRestrictions