The GetViewportExt function has been deleted. Win32 applications should use the GetViewportExtEx function.
GetViewportExtEx