Netscape DevEdge

Skip to: [content] [navigation]

TOC PREV NEXT

plug-ins!


NPP_SetValue


Sets information about the plug-in.

Syntax

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

Parameters

The function has the following parameters:

instance
 
Pointer to the current plug-in instance.
variable
 

 
The plug-in information the call is setting. For values, see NPP_GetValue.
value
 
Destination for plug-in information returned by the function.

Returns

If successful, the function returns NPERR_NO_ERROR.

If unsuccessful, the plug-in is not loaded and the function returns an error code. For possible values, see Error Codes.

Description

NPP_SetValue sets a variety of features for a plug-in, among them whether a plug-in is windowed or windowless and whether JavaScript is enabled. For possible values, see NPP_GetValue. The plug-in makes this call from its NPP_New method.

For example, to specify that a plug-in is windowless, use NPP_SetValue with NPPVpluginWindowBool as the variable to set and false as the value parameter. If a plug-in does not make this call, it is considered a windowed plug-in.

See Also

NPP_New, NPP_GetValue
 


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT
A+R