Michał Wielhorski (1755–1805) was a Polish noble, general, participant of the Polish–Russian War of 1792 and the Kościuszko Uprising.
 Brother of Józef Wielhorski, son of Michał Wielhorski.
 He was the third ever recipient of the highest Polish military award, Virtuti Militari.
The 1794 Greater Poland uprising (Polish: "Powstanie Wielkopolskie 1794 roku") was a military insurrection by Poles in Wielkopolska (Greater Poland) against Kingdom of Prussia which had taken possession of this territory after the 1793 Second Partition of the Polish-Lithuanian Commonwealth.
The Polish–Russian War of 1792 (also, War of the Second Partition, and in Polish sources, War in Defence of the Constitution (Polish: "wojna w obronie Konstytucji 3 maja" )) was fought between the Polish-Lithuanian Commonwealth on one side, and the Targowica Confederation (conservative nobility of the Commonwealth opposed to the new Constitution of 3 May 1791) and the Russian Empire under Catherine the Great on the other.
The Greater Poland uprising of 1918–1919, or Wielkopolska uprising of 1918–1919 (Polish: "powstanie wielkopolskie 1918–19 roku"; German: "Großpolnischer Aufstand" ) or Posnanian War was a military insurrection of Poles in the Greater Poland region (German: Grand Duchy of Poznań or Provinz Posen) against German rule.
 The uprising had a significant effect on the Treaty of Versailles, which granted a reconstituted Second Polish Republic the area won by the Polish insurrectionists.
 The region was part of the Polish-Lithuanian Commonwealth before the Second Partition of Poland in 1793 when it was taken over by the German Kingdom of Prussia.
Alexander Guagnini (Polish: "Alexander Gwagnin" , Italian: "Alessandro Guagnini dei Rizzoni" ; 1538 in Verona, Republic of Venice – 1614 in Kraków, Polish-Lithuanian Commonwealth) was a Polish writer, military officer, chronicler and historian of Italian heritage.
 He is known as a Crown Rotmistrz of Poland and Commandant of Vitebsk.
 Guagnini fought for the Polish-Lithuanian Commonwealth in the Livonian War and the Moldavian Magnate Wars.
The 1793 Second Partition of Poland was the second of three partitions (or partial annexations) that ended the existence of the Polish–Lithuanian Commonwealth by 1795.
 The second partition occurred in the aftermath of the War in Defense of the Constitution and the Targowica Confederation of 1792, and was approved by its territorial beneficiaries, the Russian Empire and the Kingdom of Prussia.
 The division was ratified by the coerced Polish parliament (Sejm) in 1793 (see the Grodno Sejm) in a short-lived attempt to prevent the inevitable complete annexation of Poland, the Third Partition.
The Battle of Podhajce (October 6–16, 1667) was fought in the town of Podhajce in the Polish-Lithuanian Commonwealth (nowadays Pidhaitsi, western Ukraine), and the area surrounding it as part of the Polish-Tartar War and the Great Turkish War.
 The army of the Polish-Lithuanian Commonwealth under John III Sobieski, totaling around 9,000 men defeated Tatar and Cossack forces under Petro Doroshenko and Adil Giray, which totaled around 35,000 men.
The Russo-Polish War of 1654–1667, also called Thirteen Years' War, First Northern War, or the War for Ukraine, was a major conflict between Tsardom of Russia and the Polish-Lithuanian Commonwealth.
 Between 1655 and 1660, the Second Northern War was also fought in the Polish-Lithuanian Commonwealth, thus this period became known in Poland as "The Deluge".
 The Commonwealth initially suffered defeats, but regained its ground and won most of the battles.
 However its plundered economy was not able to fund the long conflict.
 Facing internal crisis and civil war, Poland was forced to sign a truce.
 The war ended with significant Russian territorial gains and marked the beginning of the rise of Russia as a great power in Eastern Europe.
The First Partition of Poland took place in 1772 as the first of three partitions that ended the existence of the Polish-Lithuanian Commonwealth by 1795.
 Growth in the Russian Empire's power, threatening the Kingdom of Prussia and the Habsburg Austrian Empire, was the primary motive behind this first partition.
 Frederick the Great engineered the partition to prevent Austria, jealous of Russian successes against the Ottoman Empire, from going to war.
 The weakened Commonwealth's land, including what was already controlled by Russia, was apportioned among its more powerful neighbors—Austria, Russia and Prussia—so as to restore the regional balance of power in Central Europe among those three countries.
 With Poland unable to effectively defend itself, and with foreign troops already inside the country, the Polish parliament (Sejm) ratified the partition in 1773 during the Partition Sejm convened by the three powers.
The Kościuszko Uprising was an uprising against Imperial Russia and the Kingdom of Prussia led by Tadeusz Kościuszko in the Commonwealth of Poland and the Prussian partition in 1794.
 It was a failed attempt to liberate the Polish-Lithuanian Commonwealth from Russian influence after the Second Partition of Poland (1793) and the creation of the Targowica Confederation.

Question: Michal Wielhorski was a participant of a war that was known as the War of the Second Partition, and was fought between the Polish-Lithuanian Commonwealth and who else?
Answer: Targowica Confederation