Update winapi and c2man so they know about -ret16. Remove support for
[wine.git] / include / drive.h
blobe0fa8f9f900cc9bf8768721b531813a0794c1870
1 /*
2 * DOS drive handling declarations
4 * Copyright 1995 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_DRIVE_H
22 #define __WINE_DRIVE_H
24 #include <windef.h>
26 #define MAX_DOS_DRIVES 26
28 /* Drive flags */
30 #define DRIVE_DISABLED 0x0001 /* Drive is disabled */
31 #define DRIVE_SHORT_NAMES 0x0002 /* Drive fs has 8.3 file names */
32 #define DRIVE_CASE_SENSITIVE 0x0004 /* Drive fs is case sensitive */
33 #define DRIVE_CASE_PRESERVING 0x0008 /* Drive fs is case preserving */
34 #define DRIVE_FAIL_READ_ONLY 0x0010 /* Fail opening read-only files for writing */
35 #define DRIVE_READ_VOL_INFO 0x0020 /* Try to read volume info from the device? */
37 extern int DRIVE_Init(void);
38 extern int DRIVE_IsValid( int drive );
39 extern int DRIVE_GetCurrentDrive(void);
40 extern int DRIVE_SetCurrentDrive( int drive );
41 extern int DRIVE_FindDriveRoot( const char **path );
42 extern int DRIVE_FindDriveRootW( LPCWSTR *path );
43 extern const char * DRIVE_GetRoot( int drive );
44 extern LPCWSTR DRIVE_GetDosCwd( int drive );
45 extern const char * DRIVE_GetUnixCwd( int drive );
46 extern const char * DRIVE_GetDevice( int drive );
47 extern LPCWSTR DRIVE_GetLabel( int drive );
48 extern DWORD DRIVE_GetSerialNumber( int drive );
49 extern int DRIVE_SetSerialNumber( int drive, DWORD serial );
50 extern UINT DRIVE_GetFlags( int drive );
51 extern UINT DRIVE_GetCodepage( int drive );
52 extern int DRIVE_Chdir( int drive, LPCWSTR path );
53 extern int DRIVE_Disable( int drive );
54 extern int DRIVE_Enable( int drive );
55 extern int DRIVE_SetLogicalMapping ( int existing_drive, int new_drive );
56 extern int DRIVE_OpenDevice( int drive, int flags );
57 extern char *DRIVE_BuildEnv(void);
59 #endif /* __WINE_DRIVE_H */