In an vehicle-mounted engine control apparatus according to the present invention, a restart inspection mechanism, which is simpler than an activation inspection mechanism, is provided, and the mechanism to be applied is selected by an initialization determination device. The contents of the restart inspection are limited to malfunction items detected by a periodic code inspector during driving of the vehicle. As a result, the time required to restart a microprocessor when a malfunction occurs is shortened.