Is it a unwinnable fight?
Perhaps the better question might be along the lines of....."Are the politicians willing to provide the necessary assets and manpower to allow the military to accomplish their tasks with the least number of losses in aircraft and most importantly, human lives.
It is the political will or lack of that will determine the outcome of both Afghanistan and Iraq. The military part of the equation is far simpler than resolving the political and religious differences within the two countries.