OSGlobalEnums.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. kFileAccessReadWrite = kFileAccessRead | kFileAccessWrite
  34. } FileAccess;
  35. typedef enum
  36. {
  37. kFileModeCreateNew = 1,
  38. kFileModeCreate = 2,
  39. kFileModeOpen = 3,
  40. kFileModeOpenOrCreate = 4,
  41. kFileModeTruncate = 5,
  42. kFileModeAppend = 6
  43. } FileMode;
  44. typedef enum
  45. {
  46. kFileShareNone = 0x0,
  47. kFileShareRead = 0x01,
  48. kFileShareWrite = 0x02,
  49. kFileShareReadWrite = kFileShareRead | kFileShareWrite,
  50. kFileShareDelete = 0x04
  51. } FileShare;
  52. typedef enum
  53. {
  54. kFileOptionsNone = 0,
  55. kFileOptionsTemporary = 1, // Internal. See note in System.IO.FileOptions
  56. kFileOptionsEncrypted = 0x4000,
  57. kFileOptionsDeleteOnClose = 0x4000000,
  58. kFileOptionsSequentialScan = 0x8000000,
  59. kFileOptionsRandomAccess = 0x10000000,
  60. kFileOptionsAsynchronous = 0x40000000,
  61. kFileOptionsWriteThrough = 0x80000000
  62. } FileOptions;
  63. typedef enum
  64. {
  65. kFileSeekOriginBegin = 0,
  66. kFileSeekOriginCurrent = 1,
  67. kFileSeekOriginEnd = 2
  68. } SeekOrigin;