It was an exciting start for Larne and, with just two minutes on the clock, Millar came close to opening the scoring when his left-footed effort from 20 yards flashed just over the crossbar.
On 23 minutes, Larne went close once more as Millar turned provider with his low delivery from the left met by O'Hara, who tried a clever back-heel that almost caught Dungannon unaware, but stopper Declan Dunne got down well to make the save.
The opener did arrive six minutes later for the home side when Millar again threatened down the left, before he played a smart one-two with Sean Graham and curled a low right-footed effort into the bottom right-hand corner of the net.
Just four minutes after, Larne doubled their advantage after the Swifts' Jamie Glackin played a sloppy ball across his defence which was intercepted by O'Hara who unleashed a right-footed shot from 20 yards that flew into the left-hand corner of the goal giving Dunne no chance.
Dunagannon started the second period at pace and almost grabbed a goal back within 90 seconds when a cross from the right was fired towards goal from close range by Andrew Mitchell, but Rohan Ferguson made a good save to deny the effort.
The Swifts were to be punished for not taking that chance on 58 minutes, however, after Graham swung in a corner from the right and Ridley rose highest to power his header past Dunne and into the net.
Five minutes from time, Leo Alves almost pulled one back for the Swifts but the substitute's superb free-kick from 25 yards was superbly tipped around the post by Ferguson to ensure yet another Larne clean sheet.