prevent Monitor Poweroff

From: Frank Wunderlich (frankwu_at_gmx.de)
Date: 05/15/04


Date: Sat, 15 May 2004 15:24:24 +0200

hi,
is where any Way to disable Monitor-Poweroff in Windows XP?
i've tried catching WM_Syscommand with wParam SC_MONITORPOWER and
SystemParametersInfo with SPI_SETPOWEROFFACTIVE, but nothing works. I can
simulate Mouseactions in a timer-event like this
    Mouse_Event(MOUSEEVENTF_MOVE, $00000001, 0, 0, 0);
    Mouse_Event(MOUSEEVENTF_MOVE, $FFFFFFFF, 0, 0, 0);
but this is IMHO a dirty solution. Is there a better way to do what i want?

Thx in advance

Frank



Relevant Pages

  • prevent Monitor Poweroff
    ... is where any Way to disable Monitor-Poweroff in Windows XP? ... i've tried catching WM_Syscommand with wParam SC_MONITORPOWER and ... SystemParametersInfo with SPI_SETPOWEROFFACTIVE, but nothing works. ...
    (comp.lang.pascal.delphi.misc)
  • temporary disable Powermanagement of Monitor
    ... is where any Way to disable Monitor-Poweroff in Windows XP? ... i've tried catching WM_Syscommand with wParam SC_MONITORPOWER and ... SystemParametersInfo with SPI_SETPOWEROFFACTIVE, but nothing works. ...
    (borland.public.delphi.nativeapi)
  • Re: variable arguments question
    ... conventions away from the rest of my code as much as possible. ... What do the letters W and L stand for in WPARAM and LPARAM? ... Once upon a time, Windows was 16-bit. ... a pointer, the pointer is usually passed in the LPARAM, whereas if the ...
    (comp.lang.c)
  • Re: Video Streaming for MPEG file
    ... And, I dont have Platform Builder, nor do I ... chosing everything default for "Windows CE ... LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Apple ships iPods preloaded with Windows virus; blames Microsoft
    ... And if Windows is so horrible, why is Apple ... "...and even more upset with ourselves for not catching ...
    (comp.sys.mac.advocacy)