Page 1 of 1

How to detect when the user press the power buton?

PostPosted: Nov 12, 2007 @ 1:19pm
by capikirk
I need to close my app when the user powers down the pda. But i don't know how to capture the event. It works with any other button using :

HRESULT SecondEventHandler::onKeyDown(DWORD dwKey, KeyList& keylist)
{
return -1;
}

but it doesn't capture the power button.

any advice?