473,396 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to set Screensaver programmatically?

Hi,

i wanted to know, how to set a Screensaver programmatically under WinXP and
Win2000?

Thank you
Yavuz Bogazci
Nov 21 '05 #1
3 2456
Hi Yavuz,

It depends what you mean by "set Screensaver". If you want to set it
running, I believe a P/Invoke call to SystemParametersInfo with a param of
SPI_SETSCREENSAVEACTIVE trick.

If you want to actually tell Windows what the current screensaver is (so
that when the user checks out display properties it's selected as their SS
of choice) I'm not sure that there's an API call that will help you, however
you could just programmatically alter the appropriate registry key.

Regards,
Alex Clark

"Yavuz Bogazci" <Ya**********@discussions.microsoft.com> wrote in message
news:63**********************************@microsof t.com...
Hi,

i wanted to know, how to set a Screensaver programmatically under WinXP
and
Win2000?

Thank you
Yavuz Bogazci

Nov 21 '05 #2
ok thank you,

i need the 2nd case. are the registry keys for winxp and win2000 the same?

thanks
yavuz bogazci

"Alex Clark" wrote:
Hi Yavuz,

It depends what you mean by "set Screensaver". If you want to set it
running, I believe a P/Invoke call to SystemParametersInfo with a param of
SPI_SETSCREENSAVEACTIVE trick.

If you want to actually tell Windows what the current screensaver is (so
that when the user checks out display properties it's selected as their SS
of choice) I'm not sure that there's an API call that will help you, however
you could just programmatically alter the appropriate registry key.

Regards,
Alex Clark

"Yavuz Bogazci" <Ya**********@discussions.microsoft.com> wrote in message
news:63**********************************@microsof t.com...
Hi,

i wanted to know, how to set a Screensaver programmatically under WinXP
and
Win2000?

Thank you
Yavuz Bogazci


Nov 21 '05 #3
Hi,

i need the 2nd case. are the registry keys for winxp and win2000 the same?


I can't be sure about that, but my assumption would be that they are (and
quite possibly as far back as Win95 in fact). The best thing to do is see
if you can get your hands on machines running a variety of Win OS's, or if
you have the licenses just install them in VirtualPC and test from there.

Cheers,
Alex Clark
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: klappnase | last post by:
Hello everyone, does anyone know a way to stop the screensaver under linux from starting up while a certain process is running? I need this because I experience a memory leak while recording...
4
by: Christopher Burr | last post by:
I'm trying to set the user's screensaver in the .NET world... In Win32 I could use a combination of setting the screen saver name via the registry and then setting the time and active status...
0
by: Luke | last post by:
I am trying to capture an event when the screensaver starts. I have code working on Windows XP etc when the Password/Welcome Screen is enabled . Using the Fast User Switching Notifications. ...
2
by: DanielB | last post by:
Does anyone know what the command line argumentto launch a screensaver's options/configuration dialog is on Windows XP Pro? From most of the example source code I can find on the web, it would...
0
by: Paul Smith | last post by:
I have been given an unusual task to create a Windows Service to do something periodically to make the screensaver timer reset. We have a general policy of locking computers automatically after 10...
4
by: Paul Smith | last post by:
I have been given an unusual task to create a Windows Service to do something periodically to make the screensaver timer reset. We have a general policy of locking computers automatically after 10...
1
by: DanielB | last post by:
Does anyone know what the command line argumentto launch a screensaver's options/configuration dialog is on Windows XP Pro? From most of the example source code I can find on the web, it would...
4
by: Simon Mercer | last post by:
I have been trying to build a screensaver that will connect to a database and display specific data depending on the user that is logged in. I have managed to get a simple data access screensaver...
6
by: VMI | last post by:
How difficult is it to develop a screensaver in C#? The screensaver would be composed of several images and each image would be displayed on the screen for a few seconds. The only difficult part...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.