Thread: Help on screensaver detail

  1. #1
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879

    Help on screensaver detail

    Hi guys, I'm currently trying to learn how to make a screensaver. But the tutorial I'm using uses this code:
    Code:
    SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,1,&oldval,0);
    Curious about what it did, I looked up SytemParametersInfo() on MSDN, and under SPI_SETSCREENSAVERRUNNING, it said:
    Used internally; applications should not use this flag.
    So, naturally, I'm sort of confused Another flag that looked more promising was SETSCREENSAVEACTIVE. Would that do the same thing? Or should I just use SETSCREENSAVERRUNNING?
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Well...The docs do say that it is used internally, however, if your code works with it (and it doesn't appear to have any negative effect on the running of windows) than I don't seem any harm done. Though because it is an internal flag I'm willing to bet that if you ran the same code with that line commented out it would work the same.

  3. #3
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    I'm willing to bet that if you ran the same code with that line commented out it would work the same.
    Hmm, it might, but it's supposed to make it so you can't ctrl-alt-del. I also saw it suggested in another thread, so it would seem that it does have an effect.

    Do you know any other flag to use that would set this one? I mean, I'm sort of uncomfortable messing with stuff I'm not supposed to be messing with (it does say internal..).

    **EDIT**
    Here's one thread:
    http://cboard.cprogramming.com/showt...ht=screensaver

    Also this:
    http://cboard.cprogramming.com/showt...ht=screensaver
    Last edited by Hunter2; 03-20-2003 at 04:40 PM.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. get keyboard and mouse events
    By ratte in forum Linux Programming
    Replies: 10
    Last Post: 11-17-2007, 05:42 PM
  2. Check out DEVIL Screensaver System!
    By hartwork in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 08-31-2005, 06:28 PM
  3. Canīt create an OpenGL screensaver
    By the dead tree in forum Windows Programming
    Replies: 14
    Last Post: 08-24-2004, 06:18 PM
  4. OpenGL to Windows Screensaver
    By drdroid in forum Windows Programming
    Replies: 7
    Last Post: 01-03-2003, 09:41 AM
  5. johny castaway screensaver
    By DavidP in forum Tech Board
    Replies: 5
    Last Post: 11-09-2002, 06:05 PM