Primrose, Gilbert, active 1685-1718, Major-General