Invokes the default method, if one exists, on the given
#include <npruntime.h> bool NPN_InvokeDefault(NPP npp, NPObject *npobj, const NPVariant *args, uint32_t argCount, NPVariant *result);
The function has the following parameters:
- The NPP indicating which plugin wants to call the default method on the object.
- The object on which to invoke the default method.
- An array of arguments to pass to the default method.
The number of arguments in the
A pointer to an
NPVariantto receive the result returned by the default method.
true if the default method was successfully invoked, otherwise
false. If the default method was invoked successfully, any return value is stored in the
NPVariant specified by
When the caller no longer needs the result, it must call
NPN_ReleaseVariantValue() to release it.
The method arguments are passed as an array of
NPVariants, and the number of arguments is passed in. The result of the method invocation is returned through an
NPVariant result parameter. If the method invocation succeeds,