Problems Holding power button pressed

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




I'm trying to "Hold" the power button pressed programatically in order to
light off the screen or "Real Power off" the PPC on WM5.0 if it is
selected.

The code is very simple:
if (SHRecognizeGesture(&shrg) == GN_CONTEXTMENU)
{
::keybd_event(VK_OFF, 0, 0, 0);
Sleep(3000);
// NOT KEY_UP
}

It recognizes the gesture, but the PPC powers off itself, not "light off" or
"Real Power of" is achieved. If I do manually the same thing it works OK.
What do you think that could be the problem?






.



Relevant Pages

  • Re: Mac, Intel, and LinuxPPC
    ... > Actually the real power of PPC is in the server market. ... > apple products are used by a small minority of the Real World, ...
    (comp.os.linux.powerpc)
  • Re: Mac, Intel, and LinuxPPC
    ... >> Any thoughts of how this will affect LinuxPPC? ... > Actually the real power of PPC is in the server market. ...
    (comp.os.linux.powerpc)
  • Re: Mac, Intel, and LinuxPPC
    ... > Actually the real power of PPC is in the server market. ... apple products are used by a small minority of the Real World ...
    (comp.os.linux.powerpc)
  • Re: Outdated social science
    ... (Which I am willing to grant is probably a ... >women in it have no real power or influence on what goes on, ... long discussions about how to handle the issue of the scarcity of ... Prev by Date: ...
    (rec.arts.sf.written)