"McCollister, Mike" <[EMAIL PROTECTED]> wrote:

> I have an application that responds to sysAppLaunchCmdAlarmTriggered and
> sysAppLaunchCmdDisplayAlarm. I want to do something different if my
> application is open and the alarm comes up. Is there an easy way to tell if
> my application is running?

DWord PilotMain(Word cmd, Ptr cmdPBP, Word launchFlags)
{
    Boolean launched;
    // launched will be true if the app is already running
    launched = (launchFlags & sysAppLaunchFlagSubCall) != 0;
    // the rest of your main routine
}

--
Roger Chaplin
<[EMAIL PROTECTED]>

Reply via email to