WINBOOL is MinGW-specific, so change it to BOOL, which is universally available. Also, Visua Studio is more picky on where __stdcall (WINAPI) is placed, so fix that to be in-sync with what is done in the other sources.