14.4.5 Exporting Functions

A typical module-definition file for a screen saver application might look like this:

NAME        BOUNCER

DESCRIPTION 'SCRNSAVE : Bounce a bitmap'

STUB        'WINSTUB.EXE'
EXETYPE     WINDOWS

CODE        MOVEABLE DISCARDABLE PRELOAD
DATA        MOVEABLE MULTIPLE PRELOAD

HEAPSIZE    1024
STACKSIZE   4096

EXPORTS
        ScreenSaverProc                 @1
        ScreenSaverConfigureDialog      @2
        DlgChangePassword               @3
        DlgGetPassword                  @4
        DlgInvalidPassword              @5
        HelpMessageFilterHookFunction   @6

The ScreenSaverProc, ScreenSaverConfigureDialog, DlgChangePassword, and HelpMessageFilterHookFunction functions have been discussed earlier in this chapter. The screen saver module typically does not make explicit calls to the HelpMessageFilterHookFunction, DlgGetPassword, or DlgInvalidPassword function.