mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
WARNING!!! This revision cannot compile correctly. It is updated to reflect the many changes within the XFX project.
98 lines
1.8 KiB
C++
98 lines
1.8 KiB
C++
#ifndef _SYSTEM_IO_ENUMS_
|
|
#define _SYSTEM_IO_ENUMS_
|
|
|
|
namespace System
|
|
{
|
|
namespace IO
|
|
{
|
|
/// <summary>
|
|
/// Defines constants for read, write, or read/write access to a file.
|
|
/// </summary>
|
|
struct FileAccess
|
|
{
|
|
enum type
|
|
{
|
|
Read = 1,
|
|
ReadWrite = 3,
|
|
Write = 2
|
|
};
|
|
};
|
|
|
|
/// <summary>
|
|
/// Provides attributes for files and directories.
|
|
/// </summary>
|
|
struct FileAttributes
|
|
{
|
|
enum type
|
|
{
|
|
Archive = 32,
|
|
Compressed = 2048,
|
|
Device = 64,
|
|
Directory = 16,
|
|
Encrypted = 16384,
|
|
Hidden = 2,
|
|
Normal = 128,
|
|
NotContentIndexed = 8192,
|
|
Offline = 4096,
|
|
ReadOnly = 1,
|
|
ReparsePoint = 1024,
|
|
SparseFile = 512,
|
|
System = 4,
|
|
Temporary = 256
|
|
};
|
|
};
|
|
|
|
/// <summary>
|
|
/// Specifies how the operating system should open a file.
|
|
/// </summary>
|
|
struct FileMode
|
|
{
|
|
enum type
|
|
{
|
|
Append = 6,
|
|
Create = 2,
|
|
CreateNew = 1,
|
|
Open = 3,
|
|
OpenOrCreate = 4,
|
|
Truncate = 5
|
|
};
|
|
};
|
|
|
|
/// <summary>
|
|
/// Contains constants for controlling the kind of access other System.IO.FileStream objects can have to the same
|
|
/// file.
|
|
/// </summary>
|
|
struct FileShare
|
|
{
|
|
enum type
|
|
{
|
|
None = 0,
|
|
Read = 1,
|
|
ReadWrite = 3,
|
|
Write = 2
|
|
};
|
|
};
|
|
|
|
/// <summary>
|
|
/// Provides the fields that represent reference points in streams for seeking.
|
|
/// </summary>
|
|
struct SeekOrigin
|
|
{
|
|
enum type
|
|
{
|
|
Begin,
|
|
Current,
|
|
End
|
|
};
|
|
};
|
|
|
|
typedef FileAccess::type FileAccess_t;
|
|
typedef FileAttributes::type FileAttributes_t;
|
|
typedef FileMode::type FileMode_t;
|
|
typedef FileShare::type FileShare_t;
|
|
typedef SeekOrigin::type SeekOrigin_t;
|
|
}
|
|
}
|
|
|
|
#endif //_SYSTEM_IO_ENUMS_
|