Corrected the slight UNICODE issue, and removed the subsequent code correction (FormatMessageA).
This program project compiles fine with current version 3.3 of the code, and can be downloaded from the same location:
http://www.foretrade.com/downloads/jkdefragdll.zip
enjoy!
bv


