Click here to Skip to main content
13,087,902 members (78,791 online)
Click here to Skip to main content
Articles » Languages » C# » General » Downloads

Stats

385.3K views
4.7K downloads
129 bookmarked
Posted 31 Jul 2002

Accessing alternative data-streams of files on an NTFS volume

, 15 Aug 2016
A pair of classes to encapsulate access to NTFS alternative data streams.
/*
  * Trinet.Core.IO.Ntfs - Utilities for working with alternate data streams on NTFS file systems.
  * Copyright (C) 2002-2010 Richard Deeming
  * 
  * This code is free software: you can redistribute it and/or modify it under the terms of either
  * - the Code Project Open License (CPOL) version 1 or later; or
  * - the GNU General Public License as published by the Free Software Foundation, version 3 or later; or
  * - the BSD 2-Clause License;
  * 
  * This code is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; 
  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
  * See the license files for details.
  * 
  * You should have received a copy of the licenses along with this code. 
  * If not, see <http://www.codeproject.com/info/cpol10.aspx>, <http://www.gnu.org/licenses/> 
  * and <http://opensource.org/licenses/bsd-license.php>.
*/

using System;

namespace Trinet.Core.IO.Ntfs
{
	/// <summary>
	/// Represents the type of data in a stream.
	/// </summary>
	public enum FileStreamType
	{
		/// <summary>
		/// Unknown stream type.
		/// </summary>
		Unknown = 0,
		/// <summary>
		/// Standard data.
		/// </summary>
		Data = 1,
		/// <summary>
		/// Extended attribute data.
		/// </summary>
		ExtendedAttributes = 2,
		/// <summary>
		/// Security data.
		/// </summary>
		SecurityData = 3,
		/// <summary>
		/// Alternate data stream.
		/// </summary>
		AlternateDataStream = 4,
		/// <summary>
		/// Hard link information.
		/// </summary>
		Link = 5,
		/// <summary>
		/// Property data.
		/// </summary>
		PropertyData = 6,
		/// <summary>
		/// Object identifiers.
		/// </summary>
		ObjectId = 7,
		/// <summary>
		/// Reparse points.
		/// </summary>
		ReparseData = 8,
		/// <summary>
		/// Sparse file.
		/// </summary>
		SparseBlock = 9,
		/// <summary>
		/// Transactional data.
		/// (Undocumented - BACKUP_TXFS_DATA)
		/// </summary>
		TransactionData = 10,
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Richard Deeming
Software Developer Nevalee Business Solutions
United Kingdom United Kingdom
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.170813.1 | Last Updated 15 Aug 2016
Article Copyright 2002 by Richard Deeming
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid