Wilson, Samuel, active 1804-1841, Lieutenant-Colonel