mirror of
https://github.com/reactos/wine.git
synced 2024-12-01 15:40:43 +00:00
bf67259a41
Changed DRIVE_CANNOTDETERMINE and DRIVE_DOESNOTEXIST to use the correct names. Cleaned up a few dependencies on internal drive.c functions.
46 lines
1.7 KiB
C
46 lines
1.7 KiB
C
/*
|
|
* DOS drive handling declarations
|
|
*
|
|
* Copyright 1995 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_DRIVE_H
|
|
#define __WINE_DRIVE_H
|
|
|
|
#include "windef.h"
|
|
|
|
#define MAX_DOS_DRIVES 26
|
|
|
|
/* Drive flags */
|
|
|
|
#define DRIVE_DISABLED 0x0001 /* Drive is disabled */
|
|
#define DRIVE_SHORT_NAMES 0x0002 /* Drive fs has 8.3 file names */
|
|
#define DRIVE_CASE_SENSITIVE 0x0004 /* Drive fs is case sensitive */
|
|
#define DRIVE_CASE_PRESERVING 0x0008 /* Drive fs is case preserving */
|
|
#define DRIVE_FAIL_READ_ONLY 0x0010 /* Fail opening read-only files for writing */
|
|
#define DRIVE_READ_VOL_INFO 0x0020 /* Try to read volume info from the device? */
|
|
|
|
extern int DRIVE_Init(void);
|
|
extern int DRIVE_IsValid( int drive );
|
|
extern int DRIVE_GetCurrentDrive(void);
|
|
extern int DRIVE_SetCurrentDrive( int drive );
|
|
extern int DRIVE_FindDriveRoot( const char **path );
|
|
extern const char * DRIVE_GetRoot( int drive );
|
|
extern const char * DRIVE_GetDosCwd( int drive );
|
|
extern const char * DRIVE_GetUnixCwd( int drive );
|
|
extern const char * DRIVE_GetDevice( int drive );
|
|
extern const char * DRIVE_GetLabel( int drive );
|
|
extern DWORD DRIVE_GetSerialNumber( int drive );
|
|
extern int DRIVE_SetSerialNumber( int drive, DWORD serial );
|
|
extern UINT DRIVE_GetFlags( int drive );
|
|
extern int DRIVE_Chdir( int drive, const char *path );
|
|
extern int DRIVE_Disable( int drive );
|
|
extern int DRIVE_Enable( int drive );
|
|
extern int DRIVE_SetLogicalMapping ( int existing_drive, int new_drive );
|
|
extern int DRIVE_OpenDevice( int drive, int flags );
|
|
extern int DRIVE_RawRead(BYTE drive, DWORD begin, DWORD length, BYTE *dataptr, BOOL fake_success );
|
|
extern int DRIVE_RawWrite(BYTE drive, DWORD begin, DWORD length, BYTE *dataptr, BOOL fake_success );
|
|
extern char *DRIVE_BuildEnv(void);
|
|
|
|
#endif /* __WINE_DRIVE_H */
|