Refactor the main DLL injection function to match current coding standards.
Refactor the main DLL injection function to match current coding standards.

Yup, finally got around to clean up this copy-pasta. Less redundancy, less fixed-size string buffers, and finally got rid of the last prominent usage of UTF-16 in thcrap.

VBChunguk/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,VBChunguk/thcrap,VBChunguk/thcrap