2 * DOS drive handling declarations
4 * Copyright 1995 Alexandre Julliard
12 #define MAX_DOS_DRIVES 26
25 #define DRIVE_DISABLED 0x0001 /* Drive is disabled */
26 #define DRIVE_SHORT_NAMES 0x0002 /* Drive fs has 8.3 file names */
27 #define DRIVE_CASE_SENSITIVE 0x0004 /* Drive fs is case sensitive */
28 #define DRIVE_CASE_PRESERVING 0x0008 /* Drive fs is case preserving */
30 extern int DRIVE_Init(void);
31 extern int DRIVE_IsValid( int drive
);
32 extern int DRIVE_GetCurrentDrive(void);
33 extern int DRIVE_SetCurrentDrive( int drive
);
34 extern int DRIVE_FindDriveRoot( const char **path
);
35 extern const char * DRIVE_GetRoot( int drive
);
36 extern const char * DRIVE_GetDosCwd( int drive
);
37 extern const char * DRIVE_GetUnixCwd( int drive
);
38 extern const char * DRIVE_GetDevice( int drive
);
39 extern const char * DRIVE_GetLabel( int drive
);
40 extern DWORD
DRIVE_GetSerialNumber( int drive
);
41 extern int DRIVE_SetSerialNumber( int drive
, DWORD serial
);
42 extern DRIVETYPE
DRIVE_GetType( int drive
);
43 extern UINT
DRIVE_GetFlags( int drive
);
44 extern int DRIVE_Chdir( int drive
, const char *path
);
45 extern int DRIVE_Disable( int drive
);
46 extern int DRIVE_Enable( int drive
);
47 extern int DRIVE_SetLogicalMapping ( int existing_drive
, int new_drive
);
48 extern int DRIVE_OpenDevice( int drive
, int flags
);
49 extern int DRIVE_RawRead(BYTE drive
, DWORD begin
, DWORD length
, BYTE
*dataptr
, BOOL fake_success
);
50 extern int DRIVE_RawWrite(BYTE drive
, DWORD begin
, DWORD length
, BYTE
*dataptr
, BOOL fake_success
);
52 #endif /* __WINE_DRIVE_H */