home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / EEDRW23S.ZIP / DIRECTOR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-09-03  |  924 b   |  29 lines

  1. /******************************************************************************
  2. * Procedures to print/change the current directory.                  *
  3. * Both routine assume the usage of GraphGen.c graphic module, and use the     *
  4. * MenuArea (MsgArea) as i/o (print and read).                      *
  5. *                Ver 0.2        Gershon Elber          May. 89 *
  6. ******************************************************************************/
  7.  
  8. #ifndef DIR_GRAF_H
  9. #define DIR_GRAF_H
  10.  
  11. typedef char FileNameType[FILE_NAME_LEN];
  12.  
  13. #define DEFAULT_FILE_TO_DIR  "*.*"
  14. #define DEFAULT_DIR_TO_DIR "."
  15.  
  16. typedef enum {             /* Possible return values of ChangeDir routine. */
  17.     CD_OK,
  18.     CD_NO_SUCH_DIR,
  19.     CD_NO_SUCH_DISK,
  20.     CD_INVALID_DIR
  21. } ChDirErrorType;
  22.  
  23. FileNameType *GetFileNamesDir(char *Mask, char *Directory, int *NumOfFiles);
  24. ChDirErrorType ChangeDir(char *Directory);
  25. char *GetDir(void);
  26. void DosSystem(void);
  27.  
  28. #endif DIR_GRAF_H
  29.