Visit Mozilla.org

NPN SetProperty

From MDC


« Gecko Plugin API Reference « Scripting plugins

Contents

[edit] Summary

Sets the value of a property on the specified NPObject.

[edit] Syntax

#include <npruntime.h>
 
bool NPN_SetProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName,
                     const NPVariant *value);

[edit] Parameters

The function has the following parameters:

npp
The NPP indicating which plugin instance's is making the request.
npobj
The object on which a value is to be set.
propertyName
A string identifier indicating the name of the property whose value is to be set.
value
The value to store in the specified property.

[edit] Returns

true if the value was set successfully, otherwise false.