summaryrefslogtreecommitdiff
path: root/tvision/winnt/include/msvc/dir.h
blob: 6be63ed74897dacea29f1b22fbcb22bac902197c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef __DIR_H
#define __DIR_H

#include <direct.h>

#ifndef MAX_PATH
#define MAX_PATH 260
#endif
#ifndef MAXPATH
#define MAXPATH MAX_PATH
#endif 

#ifndef FA_NORMAL
#define FA_NORMAL   0x00        /* Normal file, no attributes */
#define FA_RDONLY   0x01        /* Read only attribute */
#define FA_HIDDEN   0x02        /* Hidden file */
#define FA_SYSTEM   0x04        /* System file */
#define FA_LABEL    0x08        /* Volume label */
#define FA_DIREC    0x10        /* Directory */
#define FA_ARCH     0x00        /* Archive */
#endif /* FA_NORMAL */

#ifndef _FFBLK_DEF
#define _FFBLK_DEF
struct  ffblk   {
    long            ff_reserved;
    long            ff_fsize;
    unsigned long   ff_attrib;
    unsigned short  ff_ftime;
    unsigned short  ff_fdate;
    char            ff_name[MAXPATH];
};
#endif

#define getdisk() (_getdrive() + 1)


#ifdef __cplusplus
extern "C" {
#endif

int findfirst( const char *__path,
               struct ffblk *__ffblk,
               int __attrib );
int findnext( struct ffblk *__ffblk );
int findclose( struct ffblk *__ffblk );

#ifdef __cplusplus
}
#endif


#endif /* __DIR_H */