NotificationMon.ƒ/Source/InitMac.c

#include <GestaltEQU.h>
 
InitToolBox(short numberOfMasters)
{
    int     index;
    long    sysVersion;
    
    InitGraf(&thePort);
    InitFonts();
    InitWindows();
    InitMenus();
    InitCursor();
    TEInit();
    FlushEvents(everyEvent, 0);
    InitDialogs(nil);
    
    while(numberOfMasters--)
        MoreMasters();
        
    MaxApplZone();
    
    Gestalt(gestaltSystemVersion,&sysVersion);
    
    if(sysVersion < 0x0700) {
        Alert(128,nil);
        ExitToShell();
    }
}