Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

NPN_ReloadPlugins

This article needs a technical review. How you can help.

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

Summary

Reloads all of the installed plugins.

Syntax

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

Parameters

The function has the following parameter:

reloadPages
Whether to reload pages. If true, all pages are reloaded once the plugins are reloaded; otherwise, they aren't.

Description

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

Normally, if you add or remove any plug-ins, the browser does not see them until you restart Gecko. NPN_ReloadPlugins() lets you 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.

See also

Document Tags and Contributors

 Contributors to this page: teoli, kscarfone, Sheppy, Pmash
 Last updated by: kscarfone,