There is another topic with a DLL that does the same thing, but the link is broken... I thought it wouldn't hurt to post mine:
Comes as a zip, with a DLL and .gmk inside. The .gmk includes an example as well as the scripts needed!
Edited by Revel, 08 August 2010 - 08:42 AM.