访问备用数据的文件流 [英] Accessing alternate data streams in files

查看:127
本文介绍了访问备用数据的文件流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个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 library\source for an ADS access wrapper:

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

这篇关于访问备用数据的文件流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆