Great Britain and Ireland held off a strong challenge from Continental Europe to take the Seve Trophy in France.
Continental Europe, led by Jean Van de Velde recovered from an overnight five point deficit to level the tie at 11.5 points each.
But GB&I, did enough in the final matches to wrap up a sixth consecutive win in the trophy.
Mark Foster sealed victory with a one up win over Raphael Jacquelin to reach the decisive 14.5-point mark.
GB&I's fightback came as Scott Jamieson finished one up against Pablo Larrazabal to swing the momentum back in McGinley's team's favour.
World number 19 Ian Poulter sank a crucial birdie on the 18th to take victory over Matteo Manassero, before Foster secured the trophy.
The final pairing of the day, Ross Fisher and Peter Hanson, ended their battle all square.
Foster commented "It feels amazing and I'm pleased for the boys. I was playing really well and then lost the pace of the green for four or five holes and let Raphael back in, and I knew I was in for a game then so I had to refocus. It would have hurt a lot if we hadn't won today and I'm glad to pull through."
Velde's tactics of opting to field his in-form players in the top order nearly paid off as Thomas Bjorn led the way as he came from three down to beat Lee Westwood 2&1. There were also wins for Anders Hansen, Francesco Molinari, Alexander Noren and Miguel Angel Jimenez.
As the gap closed Britain and Ireland, dressed in red golf clothing, held on and went past the winning 14½-point threshold. McGinley said: "Lucky I had the team well balanced out, and had not just experience but guys in form balanced throughout the team, so they came through in the end.
"Scott Jamieson's match was huge. That kind of turned the tide in our favour. I actually focused mostly on Scott's game. I walked every shot with him from the 14th. I knew how pivotal that match was going to be and he was brilliant.
"I get a huge sense of satisfaction seeing someone like Scott or David Horsey coming though the way they did. Mark Foster as well. And of course Ross Fisher was a rock at the end."