New examples/documentation for console configuration options.
[wine] / include / drive.h
1 /*
2  * DOS drive handling declarations
3  *
4  * Copyright 1995 Alexandre Julliard
5  */
6
7 #ifndef __WINE_DRIVE_H
8 #define __WINE_DRIVE_H
9
10 #include "wintypes.h"
11
12 #define MAX_DOS_DRIVES  26
13
14 typedef enum
15 {
16     TYPE_FLOPPY,
17     TYPE_HD,
18     TYPE_CDROM,
19     TYPE_NETWORK,
20     TYPE_INVALID
21 } DRIVETYPE;
22
23 /* Drive flags */
24
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 */
29
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_GetLabel( int drive );
39 extern DWORD DRIVE_GetSerialNumber( int drive );
40 extern int DRIVE_SetSerialNumber( int drive, DWORD serial );
41 extern DRIVETYPE DRIVE_GetType( int drive );
42 extern UINT32 DRIVE_GetFlags( int drive );
43 extern int DRIVE_Chdir( int drive, const char *path );
44 extern int DRIVE_Disable( int drive  );
45 extern int DRIVE_Enable( int drive  );
46 extern int DRIVE_SetLogicalMapping ( int existing_drive, int new_drive );
47 extern int DRIVE_OpenDevice( int drive, int flags );
48 extern int DRIVE_RawRead(BYTE drive, DWORD begin, DWORD length, BYTE *dataptr, BOOL32 fake_success );
49 extern int DRIVE_RawWrite(BYTE drive, DWORD begin, DWORD length, BYTE *dataptr, BOOL32 fake_success );
50
51 #endif  /* __WINE_DRIVE_H */