2

For example, there is an EPSW method, how should I call it in C#? Is there any relevant information?

enter image description here

OR

Method(EPSW, 1) {
...
}
Victor
  • 141
  • 1
  • 11
  • Not from userspace, you can't. There may be system calls to ask the kernel to do it, but likely not a generic ACPI function. What exactly are you trying to accomplish? – Jonathon Reinhart Jun 11 '20 at 02:47
  • Thanks for the reply, I want to try to call the packaged acpi method provided by the BIOS to turn on power to a custom USB device. – Victor Jun 11 '20 at 02:51
  • sometimes there is custom WMI management interfaces provided by manufacturers of your hardware (for example `HP Client Management Interface`, we used it to remotly change BIOS passwords of our `HP` workstations) – vasily.sib Jun 11 '20 at 03:34
  • @vasily.sib It's true, but for this method, they do not provide WMI management interfaces, thanks for your reply! – Victor Jun 12 '20 at 01:16
  • @vasily.sib I seem to find a way to call ACPI Method. Do you know how to call it in C#? [link](https://learn.microsoft.com/zh-cn/windows-hardware/drivers/acpi/evaluating-a-control-method-that-takes-input-arguments) – Victor Jun 12 '20 at 03:21

0 Answers0