Jacek Caban : atl: Compare file handle to INVALID_HANDLE_VALUE to handle errors.