I am looking for an example of working code for the Symbian S60 5th edition, in which the console application can receive power off events (i.e. turn off the phone off). I know how to do this from a UI application [ AppUI, HandleSystemEventL(const TWsEvent& aEvent)etc.], but Windows Server does not seem to send events if a simple console application listens for these events.
So, I tried to connect to WS, called EventReady(&iStatus), but RunLnever called, and the application never gets EApaSystemEventShutdown.
Can anyone here provide working code for this?
Thanks.
source
share