Power state notification for application on Colibri iMX6 under WEC7

Dear Support Team,

We are using below registry setting for power state changing between normal and user idle to let our Colibri iMX6 based product LCD turning off when no operation.

"BattUserIdle" = dword:0000xxxx (seconds)
"BattSystemidle" = dword: 00000001
"BattSuspend" = dword: 00000000
"ACSuspend" = dword: 00000000
"ACSystemidle" = dword: 00000001
"ACUserIdle"=dword:0000xxxx (seconds)

it works but we met another issue for the power state changing notification to our application, because we still need some processing when power state changing - both from normal to user idle and user idle to normal.

our application is developed under vcsharp, could you help advise how to catch this notification from application?

Thanks a lot!

You may use the RequestPowerNotifications API to get notifications when something changes in the power management. This C API will report notification about states, AC/battery and power buttons.

Function is documented here:


Handling the power off button in Pocket PC in C#

you can file a sample using it from C# code.

Dear Valter,

Thanks a lot for the support, we will test it.