2 * File handling declarations
4 * Copyright 1996 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 #define MAX_PATHNAME_LEN 1024
30 /* Definition of a full DOS file name */
33 char long_name
[MAX_PATHNAME_LEN
]; /* Long pathname in Unix format */
34 WCHAR short_name
[MAX_PATHNAME_LEN
]; /* Short pathname in DOS 8.3 format */
39 extern mode_t FILE_umask
;
40 extern void FILE_SetDosError(void);
41 extern BOOL
FILE_Stat( LPCSTR unixName
, BY_HANDLE_FILE_INFORMATION
*info
, BOOL
*is_symlink
);
42 extern HANDLE
FILE_CreateFile( LPCSTR filename
, DWORD access
, DWORD sharing
,
43 LPSECURITY_ATTRIBUTES sa
, DWORD creation
,
44 DWORD attributes
, HANDLE
template, UINT drive_type
);
46 /* files/directory.c */
47 extern int DIR_Init(void);
50 extern BOOL
DOSFS_GetFullName( LPCWSTR name
, BOOL check_last
, DOS_FULL_NAME
*full
);
53 extern int DRIVE_Init(void);
54 extern int DRIVE_IsValid( int drive
);
55 extern int DRIVE_GetCurrentDrive(void);
56 extern int DRIVE_FindDriveRoot( const char **path
);
57 extern int DRIVE_FindDriveRootW( LPCWSTR
*path
);
58 extern const char * DRIVE_GetRoot( int drive
);
59 extern LPCWSTR
DRIVE_GetDosCwd( int drive
);
60 extern const char * DRIVE_GetUnixCwd( int drive
);
61 extern const char * DRIVE_GetDevice( int drive
);
62 extern int DRIVE_Chdir( int drive
, LPCWSTR path
);
63 extern WCHAR
*DRIVE_BuildEnv(void);
66 extern HANDLE
VXD_Open( LPCWSTR filename
, DWORD access
, LPSECURITY_ATTRIBUTES sa
);
68 #endif /* __WINE_FILE_H */