I have a program that I want to turn to a screensaver, where can I find some info on how to do it?

I dont want to use the scrnsave library.

My compiler is MSVC 6.0 and the program is attached.