Basically, you have to pass this parameter as an array so it'll look like this...
RegSetValueExA(OpenRegkeyHandle, ValueName, 0&, REG_BINARY, ValueDataBinary(0), ValueDataLength)
where ValueDataBinary = Array(a,b,c,d....)
Actually, I think the trick is that you can't just use SC_ACTION_RUN_COMMAND. Here's what I did. It seemed to work for me...
Option Explicit
Private Const STANDARD_RIGHTS_REQUIRED = &HF0000
Private Const GENERIC_READ = &H80000000
Private Const ERROR_INSUFFICIENT_BUFFER = 122
Private Const...
This may be a long shot, and you should really consider all other options before doing this, but you can change the ACPI driver under Computer Type in Device Manager. Update the driver to Standard Computer, basically rendering the ACPI technology useless.
Good Luck.
Carlos
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.