- 博客(1)
- 资源 (3)
- 收藏
- 关注
Firefox插件开发Demo
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];
public:
CPlugin(NPP pNPInstance);
~CPlugin();
NPBool init(NPWindow* pNPWindow);
void shut();
NPBool isInitialized();
int16 handleEvent(void* event);
void showVersion();
void clear();
void getVersion(char* *aVersion);
NPObject *GetScriptableObject();
};
#endif // __PLUGIN_H__
2010-05-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人