Evaluates a script in the scope of the specified
#include <npruntime.h> bool NPN_Evaluate(NPP npp, NPObject *npobj, NPString *script, NPVariant *result);
The function has the following parameters:
- The NPP indicating which plugin instance's window to evaluate the script in.
- The scope object.
- The script to evaluate.
- On return, contains the value returned by the script. Can't be NULL.
true if the script was evaluated successfully, otherwise
The script is evaluated in the context of the window that the calling plugin instance (the <tt>npp</tt> argument) is loaded in.
NPN_ReleaseVariantValue()to release the returned value when it's no longer needed.