This version now works.
Ported to VS 10. Recompiled. Removed hyperlinks to outdated MS docs.