NPN_ReloadPlugins

  • Revision slug: NPN_ReloadPlugins
  • Revision title: NPN_ReloadPlugins
  • Revision id: 90536
  • Created:
  • Creator: Pmash
  • Is current revision? No
  • Comment migration

Revision Content

{{ Np-browser-api() }}

Summary

Reloads all plug-ins in the Plugins directory

Syntax

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

Parameters

The function has the following parameter:

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

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.

See Also

NPN_Version

Revision Source

<p>
{{ Np-browser-api() }}
</p>
<h3 name="Summary">Summary</h3>
<p>Reloads all plug-ins in the Plugins directory
</p>
<h3 name="Syntax">Syntax</h3>
<pre>#include &lt;npapi.h&gt;
 
void NPN_ReloadPlugins(NPBool reloadPages);code
</pre>
<h3 name="Parameters">Parameters</h3>
<p>The function has the following parameter:
</p>
<dl><dt>reloadPages
</dt><dd> Whether to reload pages. Values:
<ul><li> true: Reload pages.
</li><li> false: Do not reload pages. </li></ul>
</dd></dl>
<h3 name="Description">Description</h3>
<p><code>NPN_ReloadPlugins</code> reads the Plugins directory for the current platform and reinstalls all of the plug-ins it finds there.
</p><p>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. <code>NPN_ReloadPlugins</code> 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.
</p>
<h3 name="See_Also">See Also</h3>
<p><a href="en/NPN_Version">NPN_Version</a>
</p>
Revert to this revision