Pattison, James, active 1777-1787, Major-General; Commandant of New York