Bug fixes.
[wine/multimedia.git] / include / drive.h
blob891ae7e9c9bd5f6a1fac7c4fd53b714bd57f7227
1 /*
2 * DOS drive handling declarations
4 * Copyright 1995 Alexandre Julliard
5 */
7 #ifndef __WINE_DRIVE_H
8 #define __WINE_DRIVE_H
10 #include "windef.h"
12 #define MAX_DOS_DRIVES 26
14 typedef enum
16 TYPE_FLOPPY,
17 TYPE_HD,
18 TYPE_CDROM,
19 TYPE_NETWORK,
20 TYPE_INVALID
21 } DRIVETYPE;
23 /* Drive flags */
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_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 UINT 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, BOOL fake_success );
49 extern int DRIVE_RawWrite(BYTE drive, DWORD begin, DWORD length, BYTE *dataptr, BOOL fake_success );
51 #endif /* __WINE_DRIVE_H */