NPN_ReloadPlugins

« 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