Which preposition to use with cornetcy

in Occurrences 5%

Brummell aspired to a cornetcy in this brilliant regiment, and obtained it; nor that alone; he secured, by his manners, o his dress, or his impudence, the favour and companionship friendship we cannot sayof the prince who commanded it.

Which preposition to use with  cornetcy