Dr. Vesselin Bontchev wrote:
Hello folks,

OK, I have implemented interception of application launching in PalmOS 5.x 
only, using the Notification Manager and registering to receive notifications 
for the sysNotifyAppLaunchingEvent.

However, this event is, apparently, broadcase only only on application launch but also on 
application exit - presumably, because it is just an "application switch" event and when 
an application exits, it simply switches to the Launcher? A hint that you get this both on 
application launch and on application quit can be found in the fact that the notifyDetailsP field 
points to a structure of a type aptly named "SysNotifyAppLaunchOrQuitType".

My question is - is there an easy way of determining whether my application has 
received this notification because some application is being launched - or 
because some application is quitting? I'm interested only in the launching 
events; not in the quitting ones.

I could, I suppose, check whether the name of the launched application is 
"Launcher" - but is there a more intelligent way to do it?

No big deal if it's not possible; it would just mean that I'll have to do the 
same task twice; the second time guaranteed unnecessarily.

Regards,
Vesselin


My opinion:
If the CRID is the same who is registered for vchrLauncher(?) or the default launcher, then it's the launcher who gets called.


Regards
Henk

--
-------------------------------------------------------------------------
  Henk Jonas                                            [EMAIL PROTECTED]
  Palm OS Â certified developer

  Please contact me, if you need an off-side contract worker.
-------------------------------------------------------------------------

--
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to