3 * Structures, defines and function prototypes for the OS/2 fake library.
5 * Copyright (c) 2001-2009 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
16 /*******************************************************************************
17 * Defined Constants And Macros *
18 *******************************************************************************/
23 #ifndef CCHMAXPATHCOMP
24 #define CCHMAXPATHCOMP 256
28 #define CCHMAXPATH 260
32 #define FIL_STANDARD 1
33 #define FIL_QUERYEASIZE 2
34 #define FIL_QUERYEASFROMLIST 3
35 #define FIL_QUERYFULLNAME 5
38 #define FILE_NORMAL 0x0000
39 #define FILE_READONLY 0x0001
40 #define FILE_HIDDEN 0x0002
41 #define FILE_SYSTEM 0x0004
42 #define FILE_DIRECTORY 0x0010
43 #define FILE_ARCHIVED 0x0020
46 #define HDIR_CREATE (-1)
62 /*******************************************************************************
63 * Structures and Typedefs *
64 *******************************************************************************/
68 typedef const char * PCSZ
;
70 typedef unsigned long ULONG
;
71 typedef ULONG
* PULONG
;
73 typedef unsigned short USHORT
;
74 typedef USHORT
* PUSHORT
;
76 #if !defined(_WINDEF_)
77 typedef unsigned int UINT
;
80 typedef unsigned char UCHAR
;
81 typedef UCHAR
* PUCHAR
;
88 typedef unsigned long BOOL
;
95 #if !defined(_WINNT_) && !defined(PVOID)
99 typedef unsigned long HDIR
;
100 typedef HDIR
* PHDIR
;
102 typedef unsigned long APIRET
;
105 typedef struct _FTIME
/* ftime */
107 #if defined(__IBMC__) || defined(__IBMCPP__)
117 typedef FTIME
*PFTIME
;
120 typedef struct _FDATE
/* fdate */
122 #if defined(__IBMC__) || defined(__IBMCPP__)
132 typedef FDATE
*PFDATE
;
135 typedef struct _FILESTATUS3
/* fsts3 */
139 FDATE fdateLastAccess
;
140 FTIME ftimeLastAccess
;
141 FDATE fdateLastWrite
;
142 FTIME ftimeLastWrite
;
147 typedef FILESTATUS3
*PFILESTATUS3
;
149 typedef struct _FILEFINDBUF3
/* findbuf3 */
151 ULONG oNextEntryOffset
;
154 FDATE fdateLastAccess
;
155 FTIME ftimeLastAccess
;
156 FDATE fdateLastWrite
;
157 FTIME ftimeLastWrite
;
162 CHAR achName
[CCHMAXPATHCOMP
];
164 typedef FILEFINDBUF3
*PFILEFINDBUF3
;
167 /*******************************************************************************
168 * Function Prototypes *
169 *******************************************************************************/
170 APIRET OS2ENTRY
DosQueryPathInfo(
176 APIRET OS2ENTRY
DosFindFirst(
185 APIRET OS2ENTRY
DosFindNext(
191 APIRET OS2ENTRY
DosFindClose(