tags:

views:

220

answers:

2

I would like to catch the power button flagged as VK_TPOWER in the documentation how is it possible ?

A: 

The power manager is the only interface I can think of :

But I am not so sure that it will let you do anything you want with the power button, it is probably strictly limited in what you can do with it :

Here's a link that could help

SAKIROGLU Koray
+1  A: 

If you can use C# have a look at the OpenNetCF. There is the OpenNETCF.WindowsCE.PowerManagement.PowerDown event that you can use.

I also recommend to read this article in order to understand how power management works.

kgiannakakis