How about a PPROSERVICES function

ppsv->pluginLoaded(plugin_name, 0/1)

I call it just before loading another plugin with 1 as second argument: if 
plugin already loaded you return 1.  If not, you remember it's loaded, so you 
can call pproshutdown() on it on
shutdown.  

When I'm done with a plugin (probably when I'm unloading myself)
I call ppsv->pluginLoaded(plugin_name, 0).



--- In [email protected], "brucexs" <bswit...@...> wrote:

> > > > If you want, I can modify so that a special entry point, if it exists, 
> > > > is automatically called in all loaded plugins (as long as PowerPro 
> > > > loads them directly and they are not loaded by other plugins).
> >  
> > > Forgot to say that the entry point would be called at shutdown after 
> > > processing pproshutdown list.

> I uploaded an exe only for testing, 4.9i, 4913.  
> http://powerpro.webeddie.com/download/powerpro.exe
> 
> 
> If plugin has an external entry point
> void pproshutdown(void)
> it gets called at pproshutdown.  Only plugins loaded directly by PowerPro and 
> still loaded at shutdown will get called.  Calls happen after pproshutdown 
> list processing, so if there is an unload there, then the call to 
> pproshutdown entry point should not happen.  Note not arguments to call to 
> pproshutdown and that name must be lower case.
>


Reply via email to