03-13-2014 09:26 AM
Has anyone setup a call library function to call the WINAPI callNtPowerInformation in PowrProf.dll ?
Specifically with “informationLevel” set to 12 (SystemPowerInformation).
03-14-2014 06:40 AM
@DM83 wrote:
Has anyone setup a call library function to call the WINAPI callNtPowerInformation in PowrProf.dll ?
Specifically with “informationLevel” set to 12 (SystemPowerInformation).
That would seem trivial enough. Just create a Cluster containing 3 * uInt32 values and 1 * uInt8 value and configure the 4th parameter to Adapt to type, wiring the cluster to it. The other parameters would be:
1) uint32 passed by value, wire 12 to it
2) pointer sized integer passed by value, wire 0 to it.
3) uint32 passed by value, wire 0 to it
4) adapt to type, wire your cluster to it
5) uint32 passed by value, wire 13 to it