Win Squeak needs to know about waking up! (Re: Laptop suspending and network drives)

Ned Konz squeak-dev at lists.squeakfoundation.org
Wed Sep 11 16:20:35 UTC 2002


On Wednesday 11 September 2002 07:50 am, Andreas Raab wrote:
> Ned,
>
> > Sounds like we're missing some notification from WinNT/WinCE...
>
> To me, it sounds as if MS should get its act together. If it
> doesn't send a notification to the window that's been woken up
> after a sleep to redraw itself, what do you expect Squeak to do?!

It looks like WinCE returns EV_POWER from the (blocking)=20
WaitCommEvent() API call on power-resume; we could have a separate=20
thread that would just wait for this and signal a semaphore.

http://msdn.microsoft.com/library/default.asp?url=3D/library/en-us/wceser=
il/htm/_wcesdk_win32_WaitCommEvent.asp

It's not clear to me which WinCE variants support WM_POWERBROADCAST,=20
but apparently some do.

And some also apparently send a WM_KEYUP (for the power key?) on=20
power-up.

--=20
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE




More information about the Squeak-dev mailing list