PC Review


Reply
Thread Tools Rate Thread

Capture Resume from Sleep

 
 
Erik
Guest
Posts: n/a
 
      9th Sep 2004
Is there a method to capture the event when the device wakes up from
going to sleep using .net?
 
Reply With Quote
 
 
 
 
Andrey Yatsyk
Guest
Posts: n/a
 
      9th Sep 2004
You should call CeRunAppAtEvent with NOTIFICATION_EVENT_WAKEUP argument.
This article
http://www.codeproject.com/netcf/com...&select=816305
contains a sample with P/Invoking of this function.

--
Andrey Yatsyk [Windows Embedded MVP]
"Erik" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a method to capture the event when the device wakes up from
> going to sleep using .net?



 
Reply With Quote
 
Chris Tacke, eMVP
Guest
Posts: n/a
 
      9th Sep 2004
There's really no way to get that n native code either. The best woraround
off the top of my head is a simply C program registered with CeRunAppAtEvent
that sets a system event (and re-registers itself).

-Chris

"Erik" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a method to capture the event when the device wakes up from
> going to sleep using .net?



 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      9th Sep 2004
Take a look at http://www.alexfeinman.com/download....erAwareApp.zip

This approach works only for 4.1 devices and newer (i.e. PPC2003 but not PPC
2002)

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Erik" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is there a method to capture the event when the device wakes up from
> going to sleep using .net?



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Cannot resume from sleep after adding ram musichem Windows Vista Performance 1 10th May 2009 04:50 PM
Resume from sleep Drew Windows Vista General Discussion 0 9th Dec 2007 04:00 PM
USB Sound, sleep/resume =?Utf-8?B?SGFmbml1bQ==?= Windows Vista Hardware 0 22nd Apr 2007 01:50 PM
Capture resume from sleep event / wake up =?Utf-8?B?QmxheGVy?= Microsoft VB .NET 3 7th Oct 2004 05:45 AM
Capture resume from sleep event / wake up. =?Utf-8?B?QmxheGVy?= Microsoft VB .NET 2 11th Aug 2004 06:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:01 PM.