Dundas, Ralph, active 1793-1796, Major-General; General 1802