Kirkpatrick, William, active 1784-1810, Lieutenant-Colonel; Military Secretary to Lord Wellesley