Hi,
I'm not sure I understand your question correctly but form the docs:
"To prevent the VFS Manager from activating the start.prc application, set
the vfsHandledStartPrc bit in the handled field. To prevent the VFS Manager
from switching applications, set the vfsHandledUIAppSwitch bit. "
Code:
static unsigned short HandleNotification( SysNotifyParamType *np )
{
// VFSMgr activates volume start.prc and switches to the Launcher or to
start.prc if it has UI.
np->handled = 0 ;
np->handled |= vfsHandledStartPrc ; // prevent activating card start.prc
np->handled |= vfsHandledUIAppSwitch ; // prevent switching apps
// Do something usefull
return 0 ;
}
Regards,
Miro Pomsar
----- Original Message -----
From: "Dr. Vesselin Bontchev" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[email protected]>
Sent: Thursday, April 28, 2005 14:40
Subject: Re: Strange error when trying to intercept
sysNotifyVolumeMountedEvent
> > When I receive control with the custom launch code from
> > SysAppLaunch, do I have to eat events until the first
> > appStopEvent and only *then* enter my normal event loop??
>
> OK, the exit event apparently comes from the Launcher? I tried eating it.
This works *if* it is the Launcher running when the volume mounting
notification arrives. If it is some other application, I never get the exit
event and the whole thing hangs.
>
> If I *don't* eat the exit event, everything works *if* some application
other than the Launcher is running when the notification arrives. It doesn't
have to be my application - it could be the Calculator or anything else. But
if it is the Launcher that is running, I crash.
>
> I don't understand why this is happening. :-( But one way to solve it
would be to determine whether it is the Launcher that is running when the
notification arrives.
>
> How do I do that? And what about third-party launchers?
>
> Regards,
> Vesselin
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/