Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <string.h>
- // variables
- DWORD dwPluginID;
- struct sPluginInfo {
- char strPluginName[255];
- char strPluginDescription[255];
- char strPluginVersion[255];
- };
- struct sBotUserInfo {
- char strBotName[255];
- char strBotPassword[255];
- bool bIsFemale;
- };
- // functions
- typedef BYTE (__stdcall * typeCommFortProcess)(DWORD dwPluginID, DWORD dwMessageID, BYTE * bMessage, DWORD dwMessageLength);
- typeCommFortProcess CommFortProcess;
- extern "C" __declspec(dllexport) BYTE PluginInit(DWORD dwThisPluginID, sPluginInfo *plInfo, sBotUserInfo *botInfo, typeCommFortProcess);
- extern "C" __declspec(dllexport) BYTE PluginTerminate();
- extern "C" __declspec(dllexport) BYTE PluginProcess(DWORD dwMessageID, BYTE * bMessage, DWORD dwMessageLength);
- extern "C" __declspec(dllexport) BOOL Premoderation(DWORD dwMessageID, BYTE * bMessage, DWORD * dwMessageLength);
- extern "C" __declspec(dllexport) VOID PluginShowOptions();
- extern "C" __declspec(dllexport) VOID PluginShowAbout();
- //---------------------------------------------------------------------------
- int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
- {
- return 1;
- }
- //---------------------------------------------------------------------------
- BYTE PluginInit(DWORD dwThisPluginID, sPluginInfo * plInfo, sBotUserInfo * botInfo, typeCommFortProcess func1)
- {
- dwPluginID = dwThisPluginID;
- strcpy_s((* plInfo).strPluginName, "Null");
- strcpy_s((* plInfo).strPluginDescription, "Null");
- strcpy_s((* plInfo).strPluginVersion, "4.02");
- strcpy_s((* botInfo).strBotName, "botik");
- strcpy_s((* botInfo).strBotPassword, "osdwgz");
- (* botInfo).bIsFemale = false;
- CommFortProcess = func1;
- (*CommFortProcess)(dwPluginID, 40, NULL, 0);
- return 0;
- }
- //---------------------------------------------------------------------------
- BYTE PluginTerminate()
- {
- MessageBox(NULL, L"Terminate" , L"Terminate", 0);
- return 0;
- }
- //---------------------------------------------------------------------------
- BOOL Premoderation(DWORD dwMessageID, BYTE * bMessage, DWORD * dwMessageLength)
- {
- MessageBox(NULL, L"Premoderation" , L"Premoderation", 0);
- return FALSE;
- }
- //---------------------------------------------------------------------------
- BYTE PluginProcess(DWORD dwMessageID, BYTE * bMessage, DWORD dwMessageLength)
- {
- MessageBox(NULL, L"hello", L"Process", 0);
- return 0;
- }
- //---------------------------------------------------------------------------
- VOID PluginShowOptions()
- {
- MessageBox(NULL, L"Options" , L"Options", 0);
- }
- //---------------------------------------------------------------------------
- VOID PluginShowAbout()
- {
- MessageBox(NULL, L"About" , L"About", 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement