NPN_ReloadPlugins

  • Revision slug: NPN_ReloadPlugins
  • Revision title: NPN_ReloadPlugins
  • Revision id: 90537
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment clean up; 31 words added, 37 words removed

Revision Content

{{ Np-browser-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

Revision Source

<p>{{ Np-browser-api() }}</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p>Reloads all of the installed plugins.</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre>#include &lt;npapi.h&gt;
 
void NPN_ReloadPlugins(NPBool reloadPages);code
</pre>
<h3 id="Parameters" name="Parameters">Parameters</h3>
<p>The function has the following parameter:</p>
<dl> <dt><code>reloadPages</code></dt> <dd>Whether to reload pages. If <code>true</code>, all pages are reloaded once the plugins are reloaded; otherwise, they aren't.</dd>
</dl>
<h3 id="Description" 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>Normally, if you add or remove any plug-ins, the browser does not see them until you restart Gecko. <code>NPN_ReloadPlugins()</code> 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.</p>
<h3 id="See_Also" name="See_Also">See also</h3>
<ul> <li><a href="/en/NPN_Version" title="en/NPN_Version">NPN_Version()</a></li>
</ul>
Revert to this revision