OSGlobalEnums.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #pragma once
  2. typedef enum
  3. {
  4. kFileTypeUnknown = 0x0000,
  5. kFileTypeDisk = 0x0001,
  6. kFileTypeChar = 0x0002,
  7. kFileTypePipe = 0x0003,
  8. kFileTypeRemote = 0x8000
  9. } FileType;
  10. typedef enum
  11. {
  12. kFileAttributeReadOnly = 0x00000001,
  13. kFileAttributeHidden = 0x00000002,
  14. kFileAttributeSystem = 0x00000004,
  15. kFileAttributeDirectory = 0x00000010,
  16. kFileAttributeArchive = 0x00000020,
  17. kFileAttributeDevice = 0x00000040,
  18. kFileAttributeNormal = 0x00000080,
  19. kFileAttributeTemporary = 0x00000100,
  20. kFileAttributeSparse_file = 0x00000200,
  21. kFileAttributeReparse_point = 0x00000400,
  22. kFileAttributeCompressed = 0x00000800,
  23. kFileAttributeOffline = 0x00001000,
  24. kFileAttributeNot_content_indexed = 0x00002000,
  25. kFileAttributeEncrypted = 0x00004000,
  26. kFileAttributeVirtual = 0x00010000,
  27. kFileAttributeInternalMonoExecutable = 0x80000000 // Only used internally by Mono
  28. } UnityPalFileAttributes;
  29. typedef enum
  30. {
  31. kFileAccessRead = 0x01,
  32. kFileAccessWrite = 0x02,
  33. kFileAccessExecute = 0x04,
  34. kFileAccessReadWrite = kFileAccessRead | kFileAccessWrite,
  35. kFileAccessReadWriteExecute = kFileAccessRead | kFileAccessWrite | kFileAccessExecute
  36. } FileAccess;
  37. typedef enum
  38. {
  39. kFileModeCreateNew = 1,
  40. kFileModeCreate = 2,
  41. kFileModeOpen = 3,
  42. kFileModeOpenOrCreate = 4,
  43. kFileModeTruncate = 5,
  44. kFileModeAppend = 6
  45. } FileMode;
  46. typedef enum
  47. {
  48. kFileShareNone = 0x0,
  49. kFileShareRead = 0x01,
  50. kFileShareWrite = 0x02,
  51. kFileShareReadWrite = kFileShareRead | kFileShareWrite,
  52. kFileShareDelete = 0x04
  53. } FileShare;
  54. typedef enum
  55. {
  56. kFileOptionsNone = 0,
  57. kFileOptionsTemporary = 1, // Internal. See note in System.IO.FileOptions
  58. kFileOptionsEncrypted = 0x4000,
  59. kFileOptionsDeleteOnClose = 0x4000000,
  60. kFileOptionsSequentialScan = 0x8000000,
  61. kFileOptionsRandomAccess = 0x10000000,
  62. kFileOptionsAsynchronous = 0x40000000,
  63. kFileOptionsWriteThrough = 0x80000000
  64. } FileOptions;
  65. typedef enum
  66. {
  67. kFileSeekOriginBegin = 0,
  68. kFileSeekOriginCurrent = 1,
  69. kFileSeekOriginEnd = 2
  70. } SeekOrigin;