Subversion Repositories SvarDOS

Rev

Rev 2038 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2038 Rev 2040
Line 49... Line 49...
49
{
49
{
50
  WORD ldw[2];  /* LowDoubleWord  */
50
  WORD ldw[2];  /* LowDoubleWord  */
51
  DWORD hdw;    /* HighDoubleWord */
51
  DWORD hdw;    /* HighDoubleWord */
52
} FILETIME;
52
} FILETIME;
53
 
53
 
54
typedef struct  WIN32_FIND_DATAA
54
struct WIN32_FIND_DATA {
55
{
-
 
56
  DWORD dwFileAttributes;
55
  DWORD dwFileAttributes;
57
  FILETIME ftCreationTime;
56
  FILETIME ftCreationTime;
58
  FILETIME ftLastAccessTime;
57
  FILETIME ftLastAccessTime;
59
  FILETIME ftLastWriteTime;
58
  FILETIME ftLastWriteTime;
60
  DWORD    nFileSizeHigh;
59
  DWORD    nFileSizeHigh;
61
  DWORD    nFileSizeLow;
60
  DWORD    nFileSizeLow;
62
  DWORD    dwReserved0;
61
  DWORD    dwReserved0;
63
  DWORD    dwReserved1;
62
  DWORD    dwReserved1;
64
  char cFileName[ 260 ];
63
  char cFileName[ 260 ];
65
  char cAlternateFileName[ 14 ];
64
  char cAlternateFileName[ 14 ];
66
} WIN32_FIND_DATAA;
-
 
67
 
65
};
68
 
66
 
69
#define WIN32_FIND_DATA WIN32_FIND_DATAA
-
 
70
 
67
 
71
typedef struct FFDTA  /* same format as a ffblk struct */
68
typedef struct FFDTA  /* same format as a ffblk struct */
72
{
69
{
73
  BYTE reserved[21]; /* dos positioning info */
70
  BYTE reserved[21]; /* dos positioning info */
74
  BYTE ff_attrib;    /* file attributes */
71
  BYTE ff_attrib;    /* file attributes */
Line 94... Line 91...
94
  FHND fhnd;         /* The data stored */
91
  FHND fhnd;         /* The data stored */
95
} FindFileStruct;
92
} FindFileStruct;
96
 
93
 
97
typedef FindFileStruct *HANDLE;
94
typedef FindFileStruct *HANDLE;
98
 
95
 
99
#define STDCALL
-
 
100
 
-
 
101
HANDLE STDCALL FindFirstFileA(const char *pathname, WIN32_FIND_DATAA *findData);
96
HANDLE FindFirstFile(const char *pathname, struct WIN32_FIND_DATA *findData);
102
int STDCALL FindNextFileA(HANDLE hnd, WIN32_FIND_DATAA *findData);
97
int FindNextFile(HANDLE hnd, struct WIN32_FIND_DATA *findData);
103
void STDCALL FindClose(HANDLE hnd);
98
void FindClose(HANDLE hnd);
104
 
-
 
105
#define FindFirstFile FindFirstFileA
-
 
106
#define FindNextFile FindNextFileA
-
 
107
 
99
 
108
DWORD GetFileAttributes(const char *pathname);
100
DWORD GetFileAttributes(const char *pathname);
109
 
101
 
110
/* Only the 1st 4 arguments are used and returns zero on error */
102
/* Only the 1st 4 arguments are used and returns zero on error */
111
int GetVolumeInformation(char *lpRootPathName,char *lpVolumeNameBuffer,
103
int GetVolumeInformation(char *lpRootPathName,char *lpVolumeNameBuffer,