Article View: comp.os.ms-windows.nt
Article #106Re: Terminating screen saver programatically
From: L.J. Wischik
Date: Mon, 28 Apr 1997 00:00
Date: Mon, 28 Apr 1997 00:00
22 lines
2165 bytes
2165 bytes
Jorn Erlend Aaberg Nygjerd <jorn.nygjerd@ffi.no> wrote: >When the 5 seconds have elapsed I kill the timer to free system >resources, and then post or send a message which terminates the screen >saver (have tried different messages). This works fine the first time, >but the screen saver never starts again. Anotherwords, if my system is >set to start the screen saver after 1 minute, it does just that. 5 >seconds later the screen saver exits and never appears again even if I >wait 1,2,3, ... minutes. >It seems some operating system timer is not reset (not affected by my >programatically way to end the screen saver), so the operating system >thinks my screen saver is still running. Are you using SCRNSAVE.LIB? Have you done SystemParametersInfo(SPI_SCREENSAVERRUNNING,1,..) at the start, and (...,0,...) at the end? -- Lucian Wischik, Queens' College, Cambridge CB3 9ET. ljw1004@cam.ac.uk
Technical Details
Message-ID:
<5k2a51$bf2@lyra.csx.cam.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bc52bf$4ce15c00$fd66bdcc@darth> <3364852D.5477@ffi.no>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa335,2bb66df01fbae739 X-Google-Attributes: gidfa335,public X-Google-Thread: 1105ff,2bb66df01fbae739 X-Google-Attributes: gid1105ff,public X-Google-Thread: 112bf7,2bb66df01fbae739 X-Google-Attributes: gid112bf7,public X-Google-Thread: fb9cd,2bb66df01fbae739 X-Google-Attributes: gidfb9cd,public X-Google-Thread: f4307,2bb66df01fbae739 X-Google-Attributes: gidf4307,public X-Google-Thread: 113dfb,2bb66df01fbae739 X-Google-Attributes: gid113dfb,public X-Google-Thread: fccee,2bb66df01fbae739 X-Google-Attributes: gidfccee,public X-Google-Thread: f8083,2bb66df01fbae739 X-Google-Attributes: gidf8083,public From: ljw1004@cus.cam.ac.uk (L.J. Wischik) Subject: Re: Terminating screen saver programatically Date: 1997/04/28 Message-ID: <5k2a51$bf2@lyra.csx.cam.ac.uk> X-Deja-AN: 237918895 References: <01bc52bf$4ce15c00$fd66bdcc@darth> <3364852D.5477@ffi.no> Organization: University of Cambridge, England Newsgroups: comp.os.ms-windows.nt,comp.os.ms-windows.nt.misc,comp.os.ms-windows.programmer,comp.os.ms-windows.programmer.win32,comp.os.ms-windows.programmer.winhelp,comp.os.ms-windows.win95,fido.win32,microsoft.public.vc,microsoft.public.vc.events,microso