如何从硬盘驱动器中的扇区中提取纯文本。 [英] How Do I extract the pure text from sectors in a hard drive.

查看:117
本文介绍了如何从硬盘驱动器中的扇区中提取纯文本。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

来自codeproject的人们。



我想要执行具有以下功能的软件,希望你能帮助我:



1)读取存储在扇区中的信息。

2)添加搜索文本按钮以查找我想要检索/恢复的特定文本



3)找到文本后可视化文本。



4)将软件设为查看不同的硬盘连接,我的意思是,像恢复树一样。



使用Winhex编辑器等可以实现整个功能,但我想创建我自己。



有什么建议吗?感谢您的阅读,我最诚挚的问候。

Michael

Hello people from codeproject.

I want to perform a software with the following capabilities, hope you can help me with it:

1) Read the information storaged in sectors.
2) Add a "search text" button in order to find the specific text that I want to retreive/recover

3) Visualize the text once this has been found.

4) Gice the software the feature for looking into the different hard drived connected, I mean, like a recovery tree.

This entire features are possible using the Winhex editor and so on, but I want to create my own.

Any suggestions?, thanks for reading, my best regards.
Michael

推荐答案

这是使用常规Windows API CreateFile 完成的:

https://msdn.microsoft.com /en-us/library/windows/desktop/aa363858%28v=vs.85%29.aspx [ ^ ]。



仅限您需要为表示磁盘的文件名使用适当的字符串\\.\PhysicalDriveX。请参阅本MSDN文章末尾的解释。



请注意,所有此类操作都需要提升权限。



-SA
This is done using regular Windows API CreateFile:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa363858%28v=vs.85%29.aspx[^].

Only you need to use appropriate string for a file name representing the disk, "\\.\PhysicalDriveX". See the explanations at the end of this MSDN article.

Note that all such operations will require elevation of privileges.

—SA


这篇关于如何从硬盘驱动器中的扇区中提取纯文本。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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