home *** CD-ROM | disk | FTP | other *** search
- /*
- ** Apple Macintosh Developer Technical Support
- **
- ** Header for routines demonstrating how to launch an application without
- ** a currently running application to actually call LaunchApplication().
- **
- ** by Mark Cookson, Apple Developer Technical Support
- **
- ** File: LaunchMe.h
- **
- ** Copyright ©1996 Apple Computer, Inc.
- ** All rights reserved.
- **
- ** You may incorporate this sample code into your applications without
- ** restriction, though the sample code has been provided "AS IS" and the
- ** responsibility for its operation is 100% yours. However, what you are
- ** not permitted to do is to redistribute the source as "Apple Sample
- ** Code" after having made changes. If you're going to re-distribute the
- ** source, we require that you make it clear in the source that the code
- ** was descended from Apple Sample Code, but that you've made changes.
- */
-
- #include <Fonts.h>
- #include <Notification.h>
- #include <Processes.h>
- #include <Resources.h>
- #include <StandardFile.h>
- #include <Timer.h>
-
- #define kDelay 1000 // 1 second == 1000 milliseconds
-
- struct MyDelayedLaunchRec {
- TMTask theTask;
- StandardFileReply theSFReply;
- NMRec NMProcRec;
- LaunchParamBlockRec launchMe;
- };
-
- typedef struct MyDelayedLaunchRec MyDelayedLaunchRec, *MyDelayedLaunchPtr;
-