.NET Components for Mobility

Suspend question

Last post 07-16-2008 6:20 AM by PeterFoot. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-30-2008 11:21 PM

    Suspend question

    Hi, I write an ap on wince5 whitch use StreamInterfaceDriver class to creat file and do some IO control. If I press hardware key to enter suspend, then  system will hold. Is there any event that I can get to know system is going to enter suspend and I will close application first. Is it possible that....... please advise thank you.
  • 07-16-2008 6:20 AM In reply to

    Re: Suspend question

    Using the power management APIs you can be alerted when the system state changes, however you will not get the notification until the device wakes up again. This allows you to recover from the situation but you can't get advanced warning of a suspend.

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
Page 1 of 1 (2 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.