Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Book 4-Appendices - <b>nnetextatt()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 NNETEXTATT()
 Sets or queries extended file attributes
------------------------------------------------------------------------------
 Syntax

     NNETEXTATT(<cFile>,[<nAttr>]) --> nNewAttr

     Netware: 2.2 and 3.11

 Arguments

     <cFile>  Designates the file for which the extended file attributes
     are set or queried.  <cFile> can contain a path specification.

     <nAttr>  Designates an optional parameter that must be passed to set
     the new extended file attributes of <cFile> .  The value for <nAttr> can
     be calculated according to the table in the description.

 Returns

     NNETEXTATT() returns a numeric value that contains the extended file
     attributes of <cFile>.  These numeric values correspond to the table in
     the description.  If an error occurs, the function returns -1.

 Description

     NOVELL NET EXTENDED ATTRIBUTES
     Besides the DOS file attributes, Netware supports additional extended
     file attributes.  NNETEXTATT() allows you to set or query these
     attributes.  The coding of the extended file attributes can be seen in
     the following table:

     Table 23.4:  Coding of Extended File Attributes
     ------------------------------------------------------------------------
     Bit     Value     CTNNET.CH    Definition
     ------------------------------------------------------------------------
     5       16        EXA_TTS      Transaction attribute
     6       32        EXA_INDEX    Index attribute
     7       64        EXA_READAU   Read audit attribute
     8       128       EXA_WRITAU   Write audit attribute
     ------------------------------------------------------------------------

     To specify more attributes, the numeric values must be added.

 Note

     .  Currently, read and write audit attributes (protocol of read
        and write access) are not supported by Netware.

 Examples

     .  Check to see if the transaction attribute is set for
        CLIENT.DBF:

        IF ISBIT(NNETEXTATT('CLIENT.DBF'),5)
           ? 'CLIENT.DBF is flagged transactional!'
        ELSE
           ? 'TTS not possible for CLIENT.DBF!'
        ENDIF

     .  Set the transaction attribute for CLIENT.DBF:

        #include "ctnnet.ch"

        NNETEXTATT('CLIENT.DBF',EXA_TTS)

See Also: NNETTTSBEG()

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