In 1216, Prince Louis of France was proclaimed King of England. It didn't stick. A century later, in 1328, Edward III of England returned the favour. He was the closest male heir to King Charles IV of France - his sister's son - and in rejecting his claim, the French codified a rule that not only can a woman not inherit the French throne, but the inheritance can never pass through a woman either.
They also sparked off the Hundred Years' War, during which at different times England controlled most of France. If things had gone differently, Edward III could have been King of France - but with the law holding that at each generation, all male lines must be exhausted before inheritence through (never by) a woman can be considered.
Historical monarchs are bolded. Other members of the line of succession are italicised. Only children and consorts relevant to the succession are included.