I know that EnCase offers a free boot CD....

http://www.guidancesoftware.com/support/downloads/packets/ENBCD505e.exe

Maybe you can get some insight from the code they use to help you figure out...