mozilla

Revision 83003 of NPP_GetValue

  • Revision slug: NPP_GetValue
  • Revision title: NPP_GetValue
  • Revision id: 83003
  • Created:
  • Creator: Josh
  • Is current revision? Yes
  • Comment 21 words added, 91 words removed
Tags: 

Revision Content

 

{{ Np-plugin-api() }}

Summary

Allows the browser to query the plug-in for information.

Syntax

#include <npapi.h>
 
NPError NPP_GetValue(void *instance, 
                     NPPVariable variable, 
                     void *value);

Parameters

The function has the following parameters:

instance
Pointer to the plugin instance from which the value should come.
variable
Variable for which the browser (caller) would like a value. The full list is in the NPAPI headers.
value
Value for the requested variable.

Returns

  • If successful, the function returns NPERR_NO_ERROR.
  • If unsuccessful, the function returns an error code. For possible values, see Error Codes.

Description

NPP_GetValue retrieves instance variables.

See Also

NPP_SetValue, NPN_GetValue, NPN_SetValue 

{{ languages( { "ja": "ja/NPP_GetValue" } ) }}

Revision Source

<p> </p>
<p>{{ Np-plugin-api() }}</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p>Allows the browser to query the plug-in for information.</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre>#include &lt;npapi.h&gt;
 
NPError NPP_GetValue(void *instance, 
                     NPPVariable variable, 
                     void *value);
</pre>
<h3 id="Parameters" name="Parameters">Parameters</h3>
<p>The function has the following parameters:</p>
<dl> <dt>instance</dt> <dd>Pointer to the plugin instance from which the value should come.</dd>
</dl>
<dl> <dt>variable</dt> <dd>Variable for which the browser (caller) would like a value. The full list is in the NPAPI headers.</dd>
</dl>
<dl> <dt>value</dt> <dd>Value for the requested variable.</dd>
</dl>
<h3 id="Returns" name="Returns">Returns</h3>
<ul> <li>If successful, the function returns NPERR_NO_ERROR.</li> <li>If unsuccessful, the function returns an error code. For possible values, see <a href="/en/NPAPI/Constants#Error_Codes" title="en/NPAPI/Constants#Error_Codes">Error Codes</a>.</li>
</ul>
<h3 id="Description" name="Description">Description</h3>
<p><code>NPP_GetValue</code> retrieves instance variables.</p>
<h3 id="See_Also" name="See_Also">See Also</h3>
<p><a href="/en/NPP_SetValue" title="en/NPP_SetValue">NPP_SetValue</a>, <a class="internal" href="/en/NPN_GetValue" title="En/NPN GetValue">NPN_GetValue</a>, <a class="internal" href="/en/NPN_SetValue" title="En/NPN SetValue">NPN_SetValue</a> </p>
<p>{{ languages( { "ja": "ja/NPP_GetValue" } ) }}</p>
Revert to this revision