Replace empty window rect checks by a new X11DRV_is_window_rect_mapped
[wine/multimedia.git] / include / file.h
blobb4be15559b9bfb768b8482b233ebdd0f745dbacb
1 /*
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
21 #ifndef __WINE_FILE_H
22 #define __WINE_FILE_H
24 #include <stdarg.h>
25 #include <windef.h>
26 #include <winbase.h>
28 #define MAX_PATHNAME_LEN 1024
30 /* Definition of a full DOS file name */
31 typedef struct
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 */
35 int drive;
36 } DOS_FULL_NAME;
38 /* files/file.c */
39 extern void FILE_SetDosError(void);
40 extern BOOL FILE_Stat( LPCSTR unixName, BY_HANDLE_FILE_INFORMATION *info, BOOL *is_symlink );
41 extern HANDLE FILE_CreateFile( LPCSTR filename, DWORD access, DWORD sharing,
42 LPSECURITY_ATTRIBUTES sa, DWORD creation,
43 DWORD attributes, HANDLE template );
45 /* files/directory.c */
46 extern int DIR_Init(void);
48 /* files/dos_fs.c */
49 extern BOOL DOSFS_GetFullName( LPCWSTR name, BOOL check_last, DOS_FULL_NAME *full );
51 /* drive.c */
52 extern int DRIVE_Init(void);
53 extern int DRIVE_IsValid( int drive );
54 extern int DRIVE_GetCurrentDrive(void);
55 extern int DRIVE_FindDriveRoot( const char **path );
56 extern int DRIVE_FindDriveRootW( LPCWSTR *path );
57 extern const char * DRIVE_GetRoot( int drive );
58 extern LPCWSTR DRIVE_GetDosCwd( int drive );
59 extern const char * DRIVE_GetUnixCwd( int drive );
60 extern const char * DRIVE_GetDevice( int drive );
61 extern int DRIVE_Chdir( int drive, LPCWSTR path );
62 extern WCHAR *DRIVE_BuildEnv(void);
64 /* vxd.c */
65 extern HANDLE VXD_Open( LPCWSTR filename, DWORD access, LPSECURITY_ATTRIBUTES sa );
67 #endif /* __WINE_FILE_H */