Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

144 rader
6.3 KiB

  1. /* Copyright (C) 2008-2016 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov
  2. *
  3. * Permission is hereby granted, free of charge, to any person obtaining a copy
  4. * of this software and associated documentation files (the "Software"), to deal
  5. * in the Software without restriction, including without limitation the rights
  6. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. * copies of the Software, and to permit persons to whom the Software is
  8. * furnished to do so, subject to the following conditions:
  9. *
  10. * The above copyright notice and this permission notice shall be included in
  11. * all copies or substantial portions of the Software.
  12. *
  13. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19. * THE SOFTWARE.
  20. */
  21. using System;
  22. namespace Alphaleonis.Win32.Filesystem
  23. {
  24. internal static partial class NativeMethods
  25. {
  26. /// <summary>Volume Attributes used by the GetVolumeInfo() function.</summary>
  27. [Flags]
  28. internal enum VolumeInfoAttributes
  29. {
  30. /// <summary>No VolumeInfo attributes.</summary>
  31. None = 0,
  32. /// <summary>FILE_CASE_SENSITIVE_SEARCH
  33. /// <para>The specified volume supports case-sensitive file names.</para>
  34. /// </summary>
  35. CaseSensitiveSearch = 1,
  36. /// <summary>FILE_CASE_PRESERVED_NAMES
  37. /// <para>The specified volume supports preserved case of file names when it places a name on disk.</para>
  38. /// </summary>
  39. CasePreservedNames = 2,
  40. /// <summary>FILE_UNICODE_ON_DISK
  41. /// <para>The specified volume supports Unicode in file names as they appear on disk.</para>
  42. /// </summary>
  43. UnicodeOnDisk = 4,
  44. /// <summary>FILE_PERSISTENT_ACLS
  45. /// <para>
  46. /// The specified volume preserves and enforces access control lists (ACL).
  47. /// For example, the NTFS file system preserves and enforces ACLs, and the FAT file system does not.
  48. /// </para>
  49. /// </summary>
  50. PersistentAcls = 8,
  51. /// <summary>FILE_FILE_COMPRESSION
  52. /// <para>The specified volume supports file-based compression.</para>
  53. /// </summary>
  54. Compression = 16,
  55. /// <summary>FILE_VOLUME_QUOTAS
  56. /// <para>The specified volume supports disk quotas.</para>
  57. /// </summary>
  58. VolumeQuotas = 32,
  59. /// <summary>FILE_SUPPORTS_SPARSE_FILES
  60. /// <para>The specified volume supports sparse files.</para>
  61. /// </summary>
  62. SupportsSparseFiles = 64,
  63. /// <summary>FILE_SUPPORTS_REPARSE_POINTS
  64. /// <para>The specified volume supports re-parse points.</para>
  65. /// </summary>
  66. SupportsReparsePoints = 128,
  67. /// <summary>(does not appear on MSDN)</summary>
  68. SupportsRemoteStorage = 256,
  69. /// <summary>FILE_VOLUME_IS_COMPRESSED
  70. /// <para>The specified volume is a compressed volume, for example, a DoubleSpace volume.</para>
  71. /// </summary>
  72. VolumeIsCompressed = 32768,
  73. /// <summary>FILE_SUPPORTS_OBJECT_IDS
  74. /// <para>The specified volume supports object identifiers.</para>
  75. /// </summary>
  76. SupportsObjectIds = 65536,
  77. /// <summary>FILE_SUPPORTS_ENCRYPTION
  78. /// <para>The specified volume supports the Encrypted File System (EFS). For more information, see File Encryption.</para>
  79. /// </summary>
  80. SupportsEncryption = 131072,
  81. /// <summary>FILE_NAMED_STREAMS
  82. /// <para>The specified volume supports named streams.</para>
  83. /// </summary>
  84. NamedStreams = 262144,
  85. /// <summary>FILE_READ_ONLY_VOLUME
  86. /// <para>The specified volume is read-only.</para>
  87. /// </summary>
  88. ReadOnlyVolume = 524288,
  89. /// <summary>FILE_SEQUENTIAL_WRITE_ONCE
  90. /// <para>The specified volume is read-only.</para>
  91. /// </summary>
  92. SequentialWriteOnce = 1048576,
  93. /// <summary>FILE_SUPPORTS_TRANSACTIONS
  94. /// <para>The specified volume supports transactions.For more information, see About KTM.</para>
  95. /// </summary>
  96. SupportsTransactions = 2097152,
  97. /// <summary>FILE_SUPPORTS_HARD_LINKS
  98. /// <para>The specified volume supports hard links. For more information, see Hard Links and Junctions.</para>
  99. /// </summary>
  100. /// <remarks>Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP: This value is not supported until Windows Server 2008 R2 and Windows 7.</remarks>
  101. SupportsHardLinks = 4194304,
  102. /// <summary>FILE_SUPPORTS_EXTENDED_ATTRIBUTES
  103. /// <para>
  104. /// The specified volume supports extended attributes. An extended attribute is a piece of application-specific metadata
  105. /// that an application can associate with a file and is not part of the file's data.
  106. /// </para>
  107. /// </summary>
  108. /// <remarks>Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP: This value is not supported until Windows Server 2008 R2 and Windows 7.</remarks>
  109. SupportsExtendedAttributes = 8388608,
  110. /// <summary>FILE_SUPPORTS_OPEN_BY_FILE_ID
  111. /// <para>The file system supports open by FileID. For more information, see FILE_ID_BOTH_DIR_INFO.</para>
  112. /// </summary>
  113. /// <remarks>Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP: This value is not supported until Windows Server 2008 R2 and Windows 7.</remarks>
  114. SupportsOpenByFileId = 16777216,
  115. /// <summary>FILE_SUPPORTS_USN_JOURNAL
  116. /// <para>The specified volume supports update sequence number (USN) journals. For more information, see Change Journal Records.</para>
  117. /// </summary>
  118. /// <remarks>Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP: This value is not supported until Windows Server 2008 R2 and Windows 7.</remarks>
  119. SupportsUsnJournal = 33554432
  120. }
  121. }
  122. }