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> dflattributeget()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DflAttributeGet()
------------------------------------------------------------------------------
 Purpose:
 Get the file attributes of a deleted file.

 Syntax:
 dwAttributes = DflAttributeGet()

 Parameters:
 None.

 Returns:
 A numeric value (unsigned long int).

 The CA-Clipper name for this function is:
 DflAttGet()

 Description:
 DflAttributeGet() returns the extended file attributes of the file
 returned by the function DirDeletedFileList().

 DflAttributeGet() can only be called after DirDeletedFileList() 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 = DirDeletedFileList( "SYS:DATA\WP" )
 ? "Deleted files in directory SYS:DATA\WP"
 ? "File name | Attribute mask"
 do while ( !empty( lpszfilename ) )
    ? lpszfilename+" "+NovAttributeString(DflAttributeGet()) )
    lpszfilename = DirDeletedFileList( "" )
 enddo

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

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

See Also: DirDeletedFileList() NovAttributeString()

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