MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See for all notifications.

Vos résultats de recherche


    Nos bénévoles n'ont pas encore traduit cet article en Français. Aidez-nous à réaliser cette tâche !

    « Gecko Plugin API Reference « Scripting plugins


    Allocates a new NPObject.


    #include <npruntime.h>
    NPObject *NPN_CreateObject(NPP npp, NPClass *aClass);


    The function has the following parameters:

    The NPP indicating which plugin wants to instantiate the object.
    The class to instantiate an object of.


    The newly-allocated NPObject.


    If the given NPClass provides an allocate function it is used to allocate the storage for the object and the NPP argument passed to NPN_CreateObject() is passed along to that function. If no allocate function is provided, malloc() is called to allocate enough memory to hold an NPObject. The newly created NPObject's reference count is initialized to 1 before it is returned.

    Étiquettes et contributeurs liés au document

    Étiquettes : 
    Contributors to this page: Sheppy
    Dernière mise à jour par : Sheppy,