在Windows中直接访问磁盘(C#)

编程入门 行业动态 更新时间:2024-10-12 05:52:35
本文介绍了在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 具有托管​​代码的包装基本上所有的Win32 API的,包括那些可以谈的磁盘管理器服务,执行低级别的内核/ IO的集合

pinvoke 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#)

本文发布于:2023-11-02 18:16:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1553076.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:磁盘   Windows

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!