mozilla
검색 결과

    NP_Initialize

    아직 자원 봉사자들이 한국어로 현재 문서를 번역하지 않았습니다. 가입해서 이 문서가 번역되는 일에 함께 해 주세요!

    « Gecko Plugin API Reference « Plug-in Side Plug-in API

    Summary

    Provides global initialization for a plug-in.

    Syntax

    Windows

    #include <npapi.h>
    
    NPError WINAPI NP_Initialize(NPNetscapeFuncs *aNPNFuncs)
    

    Unix

    #include <npapi.h>
    
    NPError NP_Initialize(NPNetscapeFuncs *aNPNFuncs, NPPluginFuncs *aNPPFuncs)
    

    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

    The browser calls this function only once: when a plug-in is loaded, before the first instance is created. This is the first function that the browser calls. NP_Initialize tells the plug-in that the browser has loaded it and provides global initialization. Allocate any memory or resources shared by all instances of your plug-in at this time.

    After the last instance of a plug-in has been deleted, the browser calls NP_Shutdown, where you can release allocated memory or resources.

    See Also

    NP_Shutdown, NPP_New

    문서 태그 및 공헌자

    태그: 
    Contributors to this page: Nickolay, Demos, Mgjbot, Kazssym, Pmash
    최종 변경: Demos,