在Windows中直接访问磁盘(C#) [英] Direct disk access in windows (C#)

查看:97
本文介绍了在Windows中直接访问磁盘(C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够直接读取和写入数据和从盘(即在部门/群集级别),但我还没有找到在Windows下这样做合适的工具。

I want to be able to read and write data directly to and from a disk (i.e. at a sector / cluster level) but I've yet to find a suitable tool for doing this under windows.

我一直在试图找出如何写我自己在C#中,但我发现的文件是稀疏的只有用C ++的API交易。

I've been trying to figure out how to write my own in C#, but the documentation I've found is sparse and only deals with C++ APIs.

请告诉我的读/最好的方式直接从C#中的驱动器写入/? (或任何人都可以推荐我一个工具,可以让我读/直接从硬盘写?)

Whats the best way of reading /writing directly to / from a drive in C#? (or can anyone recommend me a tool that allows me to read / write directly from a drive?)

推荐答案

pinvoke.net 具有托管​​代码的包装基本上所有的Win32 API的,包括那些可以谈的磁盘管理器服务,执行低级别的内核/ IO的集合

pinvoke.net has a collection of managed code wrappers for essentially all Win32 API's, including those that can talk to the Disk Manager service and perform low level kernel/IO.

这篇关于在Windows中直接访问磁盘(C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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