In CreateDIBSection function, if hdc is NULL it now uses the desktop DC
[wine.git] / include / drive.h
blob631fdd6474f9f6bdaae89a93749e827526b36675
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 */
29 #define DRIVE_FAIL_READ_ONLY 0x0010 /* Fail opening read-only files for writing */
30 #define DRIVE_READ_VOL_INFO 0x0020 /* Try to read volume info from the device? */
32 extern int DRIVE_Init(void);
33 extern int DRIVE_IsValid( int drive );
34 extern int DRIVE_GetCurrentDrive(void);
35 extern int DRIVE_SetCurrentDrive( int drive );
36 extern int DRIVE_FindDriveRoot( const char **path );
37 extern const char * DRIVE_GetRoot( int drive );
38 extern const char * DRIVE_GetDosCwd( int drive );
39 extern const char * DRIVE_GetUnixCwd( int drive );
40 extern const char * DRIVE_GetDevice( int drive );
41 extern const char * DRIVE_GetLabel( int drive );
42 extern DWORD DRIVE_GetSerialNumber( int drive );
43 extern int DRIVE_SetSerialNumber( int drive, DWORD serial );
44 extern DRIVETYPE DRIVE_GetType( int drive );
45 extern UINT DRIVE_GetFlags( int drive );
46 extern int DRIVE_Chdir( int drive, const char *path );
47 extern int DRIVE_Disable( int drive );
48 extern int DRIVE_Enable( int drive );
49 extern int DRIVE_SetLogicalMapping ( int existing_drive, int new_drive );
50 extern int DRIVE_OpenDevice( int drive, int flags );
51 extern int DRIVE_RawRead(BYTE drive, DWORD begin, DWORD length, BYTE *dataptr, BOOL fake_success );
52 extern int DRIVE_RawWrite(BYTE drive, DWORD begin, DWORD length, BYTE *dataptr, BOOL fake_success );
54 #endif /* __WINE_DRIVE_H */