How to Write a 32-Bit Screen Saver (160960)



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API), when used with:
    • Microsoft Windows NT Server 3.51
    • Microsoft Windows NT Server 4.0
    • Microsoft Windows NT Workstation 3.51
    • Microsoft Windows NT Workstation 4.0
    • Microsoft Windows 98

This article was previously published under Q160960

SUMMARY

SSAVER demonstrates how to write a screen saver that runs under Windows 95 and Windows NT. It has been designed to be customized easily with your own animations. You can add your own screen saver configuration controls by modifying the configuration dialog resource and then adding the appropriate code to the ScreenSaverConfigureDialog() in SSAVER.C. You can change the animations that are produced by modifying the code in DOFRAME.C.

MORE INFORMATION

The following file is available for download from the Microsoft Download Center:
For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.
The following files are a part of the SSAVER sample:

  • DoFrame.h, DoFrame.C - Contains all of the functions and code for drawing frames in the screen saver animation.
  • SSaver.h, SSaver.c - Contains all the code for setting up the screen saver and processing both configuration and screen saver messages.

Modification Type:MinorLast Reviewed:3/1/2005
Keywords:kbdownload kbFAQ kbfile KB160960