When I
using (var process = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "powercfg.exe",
Arguments = "-energy",
RedirectStandardOutput = true,
UseShellExecute = false,
}
})
{
process.Start();
process.WaitForExit();
}
It outputs:
A biblioteca de Diagnóstico de Eficiência de Consumo de Energia (energy.dll) n?o
p?de ser carregada.
Translated to English:
The Energy Consumption Efficiency Diagnostic library (energy.dll) couldn't be loaded.
Even when running as admin.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…