I was told that bcd worked great at converting MinGW's windows.h to D. I'm sure it's not as nice as what you're doing, but it could at least help with some of the tedious stuff. bcd is at http://www.dsource.org/projects/bcd/