How to develop a screen saver in C#
A screensaver in Windows® is simply an executable file with the extension .scr. The only difference between a normal executable and a screensaver is that a screensaver does some specific things, viz:
* parses the command line to find out what Windows® wants it to do
* loads the screensaver appropriate to that request
* ends the screensaver (usually), when the user uses the mouse or the keyboard
The arguments Windows® passes to a screensaver are:
* /s - load the screensaver
* /c - load the configuration screen
* /p - load the preview
Once we determine the argument passed, we load the screensaver appropriately. When there is some kind of activity, you end the screensaver or do something else.
@link to article
0 Comments:
Post a Comment
<< Home