Re: Display driver in WinCE 5.0

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Ronald Sloot (ronald_sloot_at_coasia.com.tw)
Date: 02/23/05


Date: Wed, 23 Feb 2005 09:04:53 +0800

If your SetVideoPowerState() function is called as the result of a callback
from the power manager (IOCTL_POWER_xxxx) it is perfectly alright to use
Sleep(). If it is getting called from the context of a XXX_PowerDown/Up it
is not. See your online platform builder documentation.

"Yu" <Yu.Mails@msa.hinet.net> wrote in message
news:OX7fhJFCFHA.1408@TK2MSFTNGP10.phx.gbl...
> Is it true that we can not use sleep() in SetVideoPowerState in WinCE 5.0
> ?
>
> Thanks.
>
> Yu.
>
>



Relevant Pages

  • Re: Any way to "log out" on a schedule?
    ... > Perhaps there is a 3rd party util' that will interrupt all active ... > app's, then shut them off, so that sleep will always work? ... We developed Power Manager for exactly this kind of task. ... Kind regards, ...
    (comp.sys.mac.system)
  • Re: how to Notify Power manager
    ... has *no* bearing on whether the device goes to sleep or not. ... Power Manager cares nothing for your application, ... "WM_POWERBRAODCAST" in Windows mobile. ...
    (microsoft.public.windowsce.app.development)
  • Re: ERROR: Power Handler function yield to low priority thread
    ... it looks to, that you are trying to make some function calls in power management-controlled function, such as poweron() or powerofffor some device driver. ... If so, then you device driver function is being called by power manager in special context, such as in a single threaded context during power down sequence of calls. ... Then please don't make assumptions about multithreading to work at that time, for example don't call Sleep() function in your device driver power function. ...
    (microsoft.public.windowsce.platbuilder)