Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I am making software for recovering Shift+Delete files from Windows. I know when files are deleted only links to them are cut off by Windows but the actual file remains there at the same place, so recovering them would require myself to search hard-drive or specifically a particular drive.

I installed the code on an old computer with Windows Millennium Edition and works. How can I make it workable for Windows 7?? Are there any API's or references for this that will be helpful?

share|improve this question
    
Are you doing this for fun or to be a product? –  user1249 Apr 10 '11 at 14:45

1 Answer 1

First of all, you'll need to run it as Administrator to get raw access to the drive. Secondly, your code that runs on Windows ME likely works with FAT filesystems (and their variants). For Windows NT-based OSes (i.e. Windows 7) you'll need to write something that understand NTFS.

NTFS is much more complicated than FAT. Worse, there's no public specification - it's Microsoft proprietary. Having said that, some people have spent a lot of time reverse-engineering it already (you'll find more with a bit more googling as well). You can also find source code for an NTFS driver in the Linux source, but that will likely be of relatively limited use for a data recovery tool.

Good luck!

share|improve this answer
    
Thanks for the help, But so i can't recover deleted data from Windwos 7 OS, you are saying, please specify ...Dean ..anyways thanks again .. –  MSU Apr 10 '11 at 3:09
    
@MSU: Not using your Windows ME software, no. But something written for NTFS specifically then you could. –  Dean Harding Apr 10 '11 at 3:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.