If you receive MIDI events with the MODM_DATA message that don't include a status byte, you must assume running status is being used. When you parse the event to determine its length, assume the most recently received status byte applies to the current event. You don't have to transmit the running status byte to the hardware.