Windows programming is freakin' terrible.