How to write a restore driver?

Hello everybody:
I want to write a driver that can restore my hard disk,Just like somebody did.I know I can intercept INT halt ,but I want to try another way.Did anybody knows how to use Diskperf driver that DDK supportted to do this?