locked
Accessing unallocated disk space of the HDD RRS feed

  • Question

  • My goal is to access and overwrite the free unallocated disk space in HDD drive ( not the free space from a partition, but the free non-partitioned /unallocated disk space), I have been told that it requires a kernel-mode driver, the platforms that I am targeting are mainly xp,vista & windows 7, but future development would also require the program to work in windows 8 as well. I am at the very ground level in what it comes to windows driver programming, but don't fear to throw me down the hard way, I'm willing to learn. So, any samples, guidance, ideas etc. in achieving my goal? (C++ please).

    Thanks.

    Thursday, September 6, 2012 11:02 AM

Answers

  • You are going to need a disk filter.  Get the WDK and look at the DiskPerf sample for reference data, and take the filter driver from the KMDF Toaster sample as a basis.  KMDF is the newer and better framework to use for drivers, unfortunately the DiskPerf sample is still the older WDM model.  This is going to be a steep learning curve.  Start with a filter driver that does nothing and then slowly build from there (probably with a lot of questions to the forums along the way).


    Don Burn Windows Filesystem and Driver Consulting Website: http://www.windrvr.com Blog: http://msmvps.com/blogs/WinDrvr

    Thursday, September 6, 2012 11:13 AM