Wow, impressive hack!!!
That said, about line 85, I would highly advise to check if the ID is <= max uint16, as that is what WinAPI requires (that high level word is 0), otherwise it interprets as a pointer to a string.
Also, you should gofmt.