Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted

1 solution

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
 
Share this answer
 
Comments
[no name] 21-Nov-15 23:53pm    
A 5 for a short and descriptive answer (short answer usually != "—SA" Answer)
Sergey Alexandrovich Kryukov 21-Nov-15 23:57pm    
Thank you.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900