访问备用数据的文件流文件、数据

由网友(时光斑驳了记忆)分享简介:在一个NTFS文件系统,有可能在一个单一的文件有替换数据流。是否有可能访问这些信息在全面管理办法?On an NTFS file system, it is possible to have alternate data streams within a single file. Is it possible to...

在一个NTFS文件系统,有可能在一个单一的文件有替换数据流。是否有可能访问这些信息在全面管理办法?

On an NTFS file system, it is possible to have alternate data streams within a single file. Is it possible to access this information in a fully managed way?

编辑:另外,我想从备用流在现有文件中读取。这是如何实现的(使用的PInvoke如果无法使用管理$ C $只有c)?

additionally, I want to read from the alternate stream in an existing file. How is this achieved (using PInvoke if not possible using managed code only)?

这个问题是相似的,但是从2009年年初和.Net答案使用的PInvoke写一个文件,而不是从它读出。自那时以来,已为这种支持增加了(到.NET 4.0?),可以做到这一点,而无需使用PInvoke的?

This question is similar, but is from early 2009 and the .Net answer uses PInvoke to write to a file, not read from it. Has support for this been added since then (to .Net 4.0?) that can do it without using PInvoke?

推荐答案

不幸的是没有,还有通过托管.Net框架的API进行访问。

Unfortunately no, there is still no access via a managed .Net Framework API.

更新

下面是一个库源的ADS访问包装:

Here's a librarysource for an ADS access wrapper:

HTTP://www.$c$cproject.com/KB/ CS / ntfsstreams.aspx

阅读全文

相关推荐

最新文章