WINAPI I hate you.