/* Copyright (C) 2008-2016 Peter Palotas, Jeffrey Jangli, Alexandr Normuradov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
using System;
namespace Alphaleonis.Win32.Filesystem
{
internal static partial class NativeMethods
{
/// Volume Attributes used by the GetVolumeInfo() function.
[Flags]
internal enum VolumeInfoAttributes
{
/// No VolumeInfo attributes.
None = 0,
/// FILE_CASE_SENSITIVE_SEARCH
/// The specified volume supports case-sensitive file names.
///
CaseSensitiveSearch = 1,
/// FILE_CASE_PRESERVED_NAMES
/// The specified volume supports preserved case of file names when it places a name on disk.
///
CasePreservedNames = 2,
/// FILE_UNICODE_ON_DISK
/// The specified volume supports Unicode in file names as they appear on disk.
///
UnicodeOnDisk = 4,
/// FILE_PERSISTENT_ACLS
///
/// The specified volume preserves and enforces access control lists (ACL).
/// For example, the NTFS file system preserves and enforces ACLs, and the FAT file system does not.
///
///
PersistentAcls = 8,
/// FILE_FILE_COMPRESSION
/// The specified volume supports file-based compression.
///
Compression = 16,
/// FILE_VOLUME_QUOTAS
/// The specified volume supports disk quotas.
///
VolumeQuotas = 32,
/// FILE_SUPPORTS_SPARSE_FILES
/// The specified volume supports sparse files.
///
SupportsSparseFiles = 64,
/// FILE_SUPPORTS_REPARSE_POINTS
/// The specified volume supports re-parse points.
///
SupportsReparsePoints = 128,
/// (does not appear on MSDN)
SupportsRemoteStorage = 256,
/// FILE_VOLUME_IS_COMPRESSED
/// The specified volume is a compressed volume, for example, a DoubleSpace volume.
///
VolumeIsCompressed = 32768,
/// FILE_SUPPORTS_OBJECT_IDS
/// The specified volume supports object identifiers.
///
SupportsObjectIds = 65536,
/// FILE_SUPPORTS_ENCRYPTION
/// The specified volume supports the Encrypted File System (EFS). For more information, see File Encryption.
///
SupportsEncryption = 131072,
/// FILE_NAMED_STREAMS
/// The specified volume supports named streams.
///
NamedStreams = 262144,
/// FILE_READ_ONLY_VOLUME
/// The specified volume is read-only.
///
ReadOnlyVolume = 524288,
/// FILE_SEQUENTIAL_WRITE_ONCE
/// The specified volume is read-only.
///
SequentialWriteOnce = 1048576,
/// FILE_SUPPORTS_TRANSACTIONS
/// The specified volume supports transactions.For more information, see About KTM.
///
SupportsTransactions = 2097152,
/// FILE_SUPPORTS_HARD_LINKS
/// The specified volume supports hard links. For more information, see Hard Links and Junctions.
///
/// Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP: This value is not supported until Windows Server 2008 R2 and Windows 7.
SupportsHardLinks = 4194304,
/// FILE_SUPPORTS_EXTENDED_ATTRIBUTES
///
/// The specified volume supports extended attributes. An extended attribute is a piece of application-specific metadata
/// that an application can associate with a file and is not part of the file's data.
///
///
/// Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP: This value is not supported until Windows Server 2008 R2 and Windows 7.
SupportsExtendedAttributes = 8388608,
/// FILE_SUPPORTS_OPEN_BY_FILE_ID
/// The file system supports open by FileID. For more information, see FILE_ID_BOTH_DIR_INFO.
///
/// Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP: This value is not supported until Windows Server 2008 R2 and Windows 7.
SupportsOpenByFileId = 16777216,
/// FILE_SUPPORTS_USN_JOURNAL
/// The specified volume supports update sequence number (USN) journals. For more information, see Change Journal Records.
///
/// Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP: This value is not supported until Windows Server 2008 R2 and Windows 7.
SupportsUsnJournal = 33554432
}
}
}