NWGetObjDiskRestrictions

Returns the disk restrictions imposed on an object for the specified volume number

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 ) NWGetObjDiskRestrictions  ( 
      NWCONN_HANDLE   conn,  
      nuint8          volNumber,  
      nuint32         objectID,  
      pnuint32        restriction,  
      pnuint32        inUse); 
   
   

Pascal Syntax

   uses calwin32 
    
   Function NWGetObjDiskRestrictions 
     (conn : NWCONN_HANDLE; 
      volNumber : nuint8; 
      objectID : nuint32; 
      restriction : pnuint32; 
      inUse : pnuint32 
   ) : NWCCODE; 
   
   

Parameters

conn
(IN) Specifies the NetWare server connection handle.
volNumber
(IN) Specifies the volume number for which to return the restrictions.
objectID
(IN) Specifies the object ID.
restriction
(OUT) Points to the buffer containing the number of blocks the object can use.
inUse
(OUT) Points to the buffer containing the number of blocks the object is currently using.

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

0x8998

VOLUME_DOES_NOT_EXIST

Remarks

The restrictions are returned in units of 4KB blocks and ignore the block size of the volume.

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

NCP Calls

See Also

NWGetExtendedVolumeInfo, NWSetObjectVolSpaceLimit