Article View: borland.public.cppbuilder.nativeapi
Article #3256Screen Saver
From: M J Heneghan
Date: Thu, 10 Aug 2006 06:18
Date: Thu, 10 Aug 2006 06:18
21 lines
1523 bytes
1523 bytes
I want to ensure the screensaver is turned off when running a demo video running under windows XP. At the beginning of the routine calling the demo I have added bool *IsScreenSave; SystemParametersInfo(SPI_GETSCREENSAVEACTIVE, 0, IsScreenSave, 0); SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, FALSE, NULL, SPIF_SENDCHANGE); .... then call the demo using spawnl(P_WAIT, demo, demo, NULL); ... and at end of routine if (IsScreenSave) SystemParametersInfo(SPI_SCREENSAVEACTIVE, TRUE, NULL, SPIF_SENDCHANGE); however, the screensaver still kicks in. What am I missing? Thanks in advance. -- M J Heneghan.
Technical Details
Message-ID:
<44dacfb0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,daf9a6c110c41bce,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "M J Heneghan" <mjheneghan@ntlworld.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Screen Saver Date: Thu, 10 Aug 2006 07:18:26 +0100 Lines: 23 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 NNTP-Posting-Host: 86.3.95.23 Message-ID: <44dacfb0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1155190704 86.3.95.23 (9 Aug 2006 23:18:24 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail