Visit Mozilla.org

NPN ReloadPlugins

From MDC

« Gecko Plugin API Reference « Browser Side Plug-in API

Contents

[edit] Summary

Reloads all plug-ins in the Plugins directory

[edit] Syntax

#include <npapi.h>
 
void NPN_ReloadPlugins(NPBool reloadPages);code

[edit] Parameters

The function has the following parameter:

reloadPages
Whether to reload pages. Values:
  • true: Reload pages.
  • false: Do not reload pages.

[edit] Description

NPN_ReloadPlugins reads the Plugins directory for the current platform and reinstalls all of the plug-ins it finds there.

Netscape Gecko knows about all installed plug-ins at start-up. If you add or remove any plug-ins, the browser does not see them until you restart it. NPN_ReloadPlugins allows you to install a new plug-in and load it, or to remove a plug-in, without having to restart the browser. You could use this function as part of the plug-in's installation process.

[edit] See Also

NPN_Version