Re: WM_HIBERNATE
- From: "Christian Resma Helle" <xtianism@xxxxxxxxx>
- Date: Tue, 16 Oct 2007 10:39:12 +0200
You can also catch the WM_HIBERNATE event through the
Microsoft.WindowsCE.Forms.MobileDevice class
Here's a short sample:
static void Main() {
Microsoft.WindowsCE.Forms.MobileDevice.Hibernate += new
EventHandler(MobileDevice_Hibernate);
Application.Run(new Form1());
}
static void MobileDevice_Hibernate(object sender, EventArgs e) {
// Do your stuff...
}
"<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message
news:OaVC2x2DIHA.4752@xxxxxxxxxxxxxxxxxxxxxxx
Why do you feel you need to hook this message? For most cases, the CF
itself will handle this by calling GC.Collect when it sees the message.
It's not "imported" from anywhere. It's simply a defined constant that
can be found in the SDK headers (probably winuser.h if I were to guess).
--
Chris Tacke, eMVP
Join the Embedded Developer Community
http://community.opennetcf.com
"Martin" <makungsbacka@xxxxxxxxxxx> wrote in message
news:C1FFA714-A780-4D2F-A42D-FD4FB8ADA57B@xxxxxxxxxxxxxxxx
Hi!
I am writing my very first Application for a Cell phone.
I am also struggeling to write it so it meets Microsofts demand for a
"True" Mobile application.
I need to hook the WM_HIBERNATE message, and i just cant figure out how.
I cant find it in the compact framework. Do i have to import it from a
DLL?
Any suggestions, links would be greatly appreciated.
Regards
Martin
.
- References:
- Re: WM_HIBERNATE
- From: <ctacke/>
- Re: WM_HIBERNATE
- Prev by Date: Re: How to migrate window mobile 5 project to window mobile 6
- Next by Date: Re: TcpClient Problem
- Previous by thread: Re: WM_HIBERNATE
- Next by thread: How to migrate window mobile 5 project to window mobile 6
- Index(es):
Relevant Pages
|