Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> dflattget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DflAttGet()
------------------------------------------------------------------------------
 Purpose:
 Get the file attributes of a deleted file.

 Syntax:
 dwAttributes = DflAttGet()

 Parameters:
 None.

 Returns:
 A numeric value (unsigned long int).

 Description:
 DflAttGet() returns the extended file attributes of the file
 returned by the function DirDflLst().

 DflAttGet() can only be called after DirDflLst() returns a
 valid file name.

 Returns a numeric value containing a mask of the extended attributes. The
 attributes can be determined from the following table:

 Attribute Name          Hex Value   Decimal
 NORMAL                  0x00000000  0
 READ ONLY               0x00000001  1
 HIDDEN                  0x00000002  2
 SYSTEM                  0x00000004  4
 EXECUTE ONLY            0x00000008  8
 ARCHIVE                 0x00000020  32
 EXECUTE CONFIRM         0x00000040  64
 SHAREABLE               0x00000080  128
 SEARCH LOW              0x00000100  256
 SEARCH MID              0x00000200  512
 SEARCH HIGH             0x00000400  1024
 TRANSACTIONAL           0x00001000  4096
 INDEXED                 0x00002000  8192
 READ AUDIT              0x00004000  16384
 WRITE AUDIT             0x00008000  32768
 IMMEDIATE PURGE (386)   0x00010000  65536
 RENAME INHIBIT (386)    0x00020000  131072
 DELETE INHIBIT (386)    0x00040000  262144
 COPY INHIBIT (386)      0x00080000  524288

 Example:
 // To list the deleted files in SYS:DATA\WP and their attributes:
 lpszfilename = DirDflLst( "SYS:DATA\WP" )
 ? "Deleted files in directory SYS:DATA\WP"
 ? "File name | Attribute mask"
 do while ( !empty( lpszfilename ) )
    ? lpszfilename+" "+NovAttStr(DflAttGet()) )
    lpszfilename = DirDflLst( "" )
 enddo

 Notes:
 Appropriate trustee access rights are required to use this
 function. You can use the function NovAttStr() to create a string
 representation of the attributes.

 This function only works with NetWare 386 and appropriate trustee access
 rights are required.

See Also: DirDflLst() NovAttStr()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson