Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 1 | /* |
| 2 | * DOS drive handling declarations |
| 3 | * |
| 4 | * Copyright 1995 Alexandre Julliard |
Alexandre Julliard | 0799c1a | 2002-03-09 23:29:33 +0000 | [diff] [blame] | 5 | * |
| 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. |
| 10 | * |
| 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. |
| 15 | * |
| 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 |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | #ifndef __WINE_DRIVE_H |
| 22 | #define __WINE_DRIVE_H |
| 23 | |
Jim Aston | 2e1cafa | 1999-03-14 16:35:05 +0000 | [diff] [blame] | 24 | #include "windef.h" |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 25 | |
| 26 | #define MAX_DOS_DRIVES 26 |
| 27 | |
Alexandre Julliard | 1e37a18 | 1996-08-18 16:21:52 +0000 | [diff] [blame] | 28 | /* Drive flags */ |
| 29 | |
| 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 */ |
Alexandre Julliard | fbace6e | 2000-04-04 20:35:45 +0000 | [diff] [blame] | 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? */ |
Alexandre Julliard | 1e37a18 | 1996-08-18 16:21:52 +0000 | [diff] [blame] | 36 | |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 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 const char * DRIVE_GetRoot( int drive ); |
| 43 | extern const char * DRIVE_GetDosCwd( int drive ); |
| 44 | extern const char * DRIVE_GetUnixCwd( int drive ); |
Andreas Mohr | 1fe9334 | 2000-01-29 21:11:47 +0000 | [diff] [blame] | 45 | extern const char * DRIVE_GetDevice( int drive ); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 46 | extern const char * DRIVE_GetLabel( int drive ); |
| 47 | extern DWORD DRIVE_GetSerialNumber( int drive ); |
| 48 | extern int DRIVE_SetSerialNumber( int drive, DWORD serial ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 49 | extern UINT DRIVE_GetFlags( int drive ); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 50 | extern int DRIVE_Chdir( int drive, const char *path ); |
| 51 | extern int DRIVE_Disable( int drive ); |
| 52 | extern int DRIVE_Enable( int drive ); |
Alexandre Julliard | 491502b | 1997-11-01 19:08:16 +0000 | [diff] [blame] | 53 | extern int DRIVE_SetLogicalMapping ( int existing_drive, int new_drive ); |
Alexandre Julliard | 60ce85c | 1998-02-01 18:33:27 +0000 | [diff] [blame] | 54 | extern int DRIVE_OpenDevice( int drive, int flags ); |
Alexandre Julliard | a396029 | 1999-02-26 11:11:13 +0000 | [diff] [blame] | 55 | extern int DRIVE_RawRead(BYTE drive, DWORD begin, DWORD length, BYTE *dataptr, BOOL fake_success ); |
| 56 | extern int DRIVE_RawWrite(BYTE drive, DWORD begin, DWORD length, BYTE *dataptr, BOOL fake_success ); |
Alexandre Julliard | aef9a36 | 2000-10-03 04:19:16 +0000 | [diff] [blame] | 57 | extern char *DRIVE_BuildEnv(void); |
Alexandre Julliard | 4f8c37b | 1996-01-14 18:12:01 +0000 | [diff] [blame] | 58 | |
| 59 | #endif /* __WINE_DRIVE_H */ |