SAMPLE: How to Write a 32-Bit Screen Saver

Last reviewed: December 13, 1996
Article ID: Q160960
The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API) for Windows NT & Win95, versions 3.51, 4.00

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 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.
    
    
You can download SSAVER.EXE from the Microsoft Software Library (MSL) on the following services:
  • Microsoft's World Wide Web Site on the Internet

          On the www.microsoft.com home page, click the Support icon.
          Click Knowledge Base, and select the product.
    
          Enter kbfile SSAVER.EXE (size: 24834 bytes) 
                                 , and click GO!
          Open the article, and click the button to download the file.
    
    
  • Internet (anonymous FTP)

          ftp ftp.microsoft.com
          Change to the Softlib/Mslfiles folder.
          Get SSAVER.EXE (size: 24834 bytes) 
    
  • Microsoft Download Service (MSDL)

          Dial (206) 936-6735 to connect to MSDL
          Download SSAVER.EXE (size: 24834 bytes) 
    

For additional information about downloading, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online
               Services


KBCategory: kbprg kbfile kbhowto
KBSubcategory: GdiScrsav
Additional reference words: 3.51 4.00 kbdsd



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 13, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.