The answer depends on the list of faults and conditions under which a vehicle may not be operated. Both cases are on that list. The horn must work: without it you have no way to warn others of danger. Windows provided by the design must be in place: without them nothing protects the driver and passengers from wind, rain and stones thrown up by wheels. Since both are banned, the right answer is "In both cases."