Firefox插件Demo #include "npapi.h" #include "npruntime.h" typedef int int16; class CPlugin { private: NPP m_pNPInstance; #ifdef XP_WIN HWND m_hWnd; #endif NPWindow * m_Window; NPStream * m_pNPStream; NPBool m_bInitialized; NPObject *m_pScriptableObject; public: char m_String[128];