home *** CD-ROM | disk | FTP | other *** search
- #if 0
- #include <Dialogs.h>
- #include <QuickDraw.h>
- #include <Windows.h>
- #include <Menus.h>
- #include <Fonts.h>
- #include <appleevents.h>
- #include <StandardFile.h>
- #include <Aliases.h>
-
- #ifdef powerc
- QDGlobals qd;
- #endif
- #endif
-
-
- #include <processes.h>
- #include <files.h>
- #include "Launchit.h"
-
- OSErr LaunchMe( FSSpec *launchApp, ProcessSerialNumber *psn )
- {
- OSErr err;
- LaunchParamBlockRec launchThis;
-
- /* set-up the launch parameter block */
- launchThis.launchAppSpec = launchApp; // rgac &launchApp;
- launchThis.launchAppParameters = nil;
-
-
- /* launch the thing */
- launchThis.launchBlockID = extendedBlock;
- launchThis.launchEPBLength = extendedBlockLen;
- launchThis.launchFileFlags = nil;
- launchThis.launchControlFlags = launchContinue + launchNoFileFlags + launchDontSwitch;
- err = LaunchApplication(&launchThis);
-
- if( noErr == err )
- {
- psn->highLongOfPSN = launchThis.launchProcessSN.highLongOfPSN;
- psn->lowLongOfPSN = launchThis.launchProcessSN.lowLongOfPSN;
- }
-
- return err;
- }
-
- #if 0
- void main()
- {
- FSSpec launchApp;
- OSErr err;
-
- InitGraf((Ptr)&qd.thePort); /* standard setup stuff */
- InitFonts();
- InitWindows();
- InitMenus();
- TEInit();
- InitDialogs(nil);
- InitCursor();
-
- err = LaunchMe( &launchApp );
- }
-
- #endif
-
-