Есть ли канонический способ проверить, имеет ли процесс административные привилегии на машине?
Я собираюсь начать длительный процесс, и намного позже в процессе "на всю жизнь" он попытается выполнить некоторые действия, требующие прав администратора.
Я бы хотел пройти тест, если процесс имеет эти права, а не позже.