Afganistan,never in its history, was tamed by any one. Be in US, Russia nor even Pakistan at any point of time. Rather than building trust with Afganistan people who are culturally simillar to Pakistan, Pakistan is using a tactic that may help to India more than other way around....
The resistance you were referring to in Afghanistan mainly came from the Pushtun belt in Afghanistan backed massively by the Pushtuns in FATA, PATA and KPK (today's Pakistan) - The Britishers, Soviets and NATO weren't wresting for control in Shaberghan, Mazar e Sharif, Taluqaan etc. the fight had always (or mostly) been around Kandahar, Kabul, Jalalabad, Gardez, Ghazni, Kunduz etc. all these are Pushtun areas (barring a few exceptions like Panj Sher etc.) - today the dynamics are different, the Pushtuns in Pakistan have greatly turned against Afghans (including Pushtun tribes) - so the Afghan support base is gone, the FATA Pushtuns were dealt with harshly but despite that I have found them more patriotic than most Punjabis and I am a strong believer that if there is one thing that kept Pakistan's war against TTP and other splinter groups on course, it was because of the patriotism of OUR Pushtuns.
As for your half-baked history lesson, I can only tell you that we have literally loved and sacrificed for Afghans like no one else in the whole wide world, despite all their allegations and a history of aggression from Afghan side since 1947 till 1979. We stood by them all alone for 2-3 good years before Rednecks saw the potential of USSR's Afghan misadventure to avenge Vietnam - we did that ONE: for our security and TWO: because we considered them as brothers. That has now changed, the blood of Pushtuns was spilt during the Afghan war as well but the bonds remained intact, this war has changed that and the final nail in the coffin was the APS killing that has somewhat changed the Pakistani Pushtun mindset for good vis-a-vis Afghan nationalism and Pushtunwali.
Criticizing Pakistan is easy, understanding its predicament is not - there were reasons for what we did, had to do, wanted to do or will do .. this is a complex war with massive odds stacked against a country facing rampant corruption, debts, a compromised intelligentsia, disloyal politicians and a geographical curse (or gift) .. but I also believe that history will vindicate Pakistan, as it did with the Afghan war because we are making history whether you like it or not.