This currently has several changes in the same commit, making it very large and hard to read; could you please split it up? In particular I'd like to see at least:
* change struct wg_parser et al. to fixed-size handle types
* replace bool with UINT8
* implement the wow64 thunks themselves
as separate patches.