NWGetVolumeFlags

Returns the flags currently set on the specified volume

Local Servers:blocking
Remote Servers:N/A
NetWare Server:4.x, 5.x, 6.x
Platform:NLM
Service:File System

Syntax

   #include <nwfileio.h>  
    
   LONG NWGetVolumeFlags  (  
      LONG   volume,  
      LONG  *flags);
   

Parameters

volume

(IN) Specifies the volume to return attributes for.

flags

(OUT) Points to a the flags set for the specified volume.

Return Values

If NWGetVolumeFlags is successful, a pointer to the set flags is returned. Otherwise, -1 is returned.

Remarks

flags can have the following values:

0x02

SUB_ALLOCATION_FLAG: If set, sub allocation units are valid on this volume.

0x04

FILE_COMPRESSION_FLAGS: If set, file compression is enabled on this volume.

0x08

DATA_MIGRATION_FLAG: If set, data migration is allowed on this volume.

0x40

VOLUME_IMMEDIATE_PURGE_FLAG: If set, this volume's deleted files will be purged immediately.

See Also

NWSetVolumeFlags