WINDOWS - added GetDC error handling