LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

callNtPowerInformation

Has anyone setup a call library function to call the WINAPI callNtPowerInformation in PowrProf.dll ?

Specifically with “informationLevel” set to 12 (SystemPowerInformation).

0 Kudos
Message 1 of 2
(2,248 Views)

@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

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 2
(2,222 Views)