Here is a tutorial to create a screensaver,
I have to see though it though, to see if it works.

http://www.axialis.com/docs/pssp/Compile_a_Screen_saver_file.htm