why this API (SetSystemPowerState) can not change the system power state??



Does anyone can tell me why?

My system power state is in useridle mode, when I got an event in my driver
under CE 5.0, I want to change the system power state from useridle to on,
so I call this API, SetSystemPowerState(L"on",0,0); but it does not work,
the system power state still keep in useridle mode, and I could not get the
PBT_TRANSITION notification either. It seems that my system could not
broadcast the PBT_TRANSITION notification.

Anyone can give me some advice? Thank you all very much.

Ricky

--




.



Relevant Pages

  • Re: why this API (SetSystemPowerState) can not change the system power state??
    ... Open the named event "PowerManager/ActivityTimer/UserActivity" and set it whenever you want to transition to "on". ... It's all in the registry and the code, and as I said, not difficult to find: ... And my system will get into useridle mode if we don't operate my CE device after one or more minutes, the backlight of my CE device will turn dark too. ... so if I got the usb plug in evnet in my usb driver programe, I will call this API and change the system power state from useridle into on, but it does not work, the system power state still keep in useridle mode, and the backlight still keep its old state too. ...
    (microsoft.public.windowsce.embedded)
  • Re: why this API (SetSystemPowerState) can not change the system power state??
    ... And my system will get into useridle mode if we ... so if I got the usb plug in evnet in my usb driver programe, ... does not work, the system power state still keep in useridle mode, and the ... I could not get the PBT_TRANSITION notification either. ...
    (microsoft.public.windowsce.embedded)
  • Re: why this API (SetSystemPowerState) can not change the system power state??
    ... Because the power manager decides what is best for the system, ... My system power state is in useridle mode, when I got an event in my driver under CE 5.0, I want to change the system power state from useridle to on, so I call this API, SetSystemPowerState; but it does not work, the system power state still keep in useridle mode, and I could not get the PBT_TRANSITION notification either. ... It seems that my system could not broadcast the PBT_TRANSITION notification. ...
    (microsoft.public.windowsce.embedded)
  • RE: why this API (SetSystemPowerState) can not change the system power
    ... are you calling SetSystemPowerState from a driver or from an application? ... So the driver must not assume that the request ... use a bitmask to describe the power state you want to change to ... My system power state is in useridle mode, when I got an event in my driver ...
    (microsoft.public.windowsce.embedded)
  • Re: why this API (SetSystemPowerState) can not change the system power
    ... I called this API from a driver. ... could you tell me why the PM might not honor the request at all?? ... can I change the system power state in my driver?? ... My system power state is in useridle mode, when I got an event in my ...
    (microsoft.public.windowsce.embedded)