Carrol, William Parker, Sir, 1776-1842, Major-General, KCH