Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>dos_getfileattr</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dos_getfileattr

Usage

   #include <dos.h>
   int dos_getfileattr(char *filepath, unsigned *att):

Description

   Gets the current file attributes of the named file and places them in the

   unsigned integer pointed to by att. The char pointer filepath references
   a standard DOS path and filename as a null terminated string. Individual
   file attributes can be checked by anding them with the appropriate masks.
   The following macros are defined in dos.h and can be used for that
   purpose:

       FA_RDONLY   read only
       FA_HIDDEN   hidden
       FA_SYSTEM   system
       FA_ARCH     archive

   dos_getfileattr is not available for directories or the volume label.

Example 

   see dos_setfileattr

Return Value

   0 if succesful otherwise the DOS error code.


See Also

   DOS package, dos_setfileattr



See Also: dos_setfileattr

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