summaryrefslogtreecommitdiff
path: root/cryptopp/main.cpp
diff options
context:
space:
mode:
authorwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-11-26 14:19:43 +0000
committerwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-11-26 14:19:43 +0000
commit7aff1e4cb053394db57c2814d5fe1e6493e0cc75 (patch)
treec8585e44049b37e4da152495c954242204c2c38d /cryptopp/main.cpp
parent6f3d69266933ef120d229e0daf2da164b77214d0 (diff)
Project folders rename part 2
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@214 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'cryptopp/main.cpp')
-rw-r--r--cryptopp/main.cpp87
1 files changed, 0 insertions, 87 deletions
diff --git a/cryptopp/main.cpp b/cryptopp/main.cpp
deleted file mode 100644
index 99fc56f..0000000
--- a/cryptopp/main.cpp
+++ /dev/null
@@ -1,87 +0,0 @@
-#include "commonheaders.h"
-
-
-// dllmain
-BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID) {
- g_hInst = hInst;
- if( dwReason == DLL_PROCESS_ATTACH ) {
- {
- char temp[MAX_PATH];
- GetTempPath(sizeof(temp),temp);
- GetLongPathName(temp,TEMP,sizeof(TEMP));
- TEMP_SIZE = strlen(TEMP);
- if(TEMP[TEMP_SIZE-1]=='\\') {
- TEMP_SIZE--;
- TEMP[TEMP_SIZE]='\0';
- }
- }
- InitializeCriticalSection(&localQueueMutex);
- InitializeCriticalSection(&localContextMutex);
-#ifdef _DEBUG
- isVista = 1;
-#else
- isVista = ( (DWORD)(LOBYTE(LOWORD(GetVersion()))) == 6 );
-#endif
- }
- //DLL_THREAD_ATTACH
- return TRUE;
-}
-
-
-PLUGININFO *MirandaPluginInfo(DWORD mirandaVersion) {
- return &pluginInfo;
-}
-
-
-PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
-{
- return &pluginInfoEx;
-}
-
-
-MUUID* MirandaPluginInterfaces(void)
-{
- return interfaces;
-}
-
-
-int onModulesLoaded(WPARAM wParam,LPARAM lParam) {
- // updater plugin support
-#if defined(_DEBUG) || defined(NETLIB_LOG)
- InitNetlib();
-#endif
- if(ServiceExists(MS_UPDATE_REGISTERFL)) {
- CallService(MS_UPDATE_REGISTERFL, (WPARAM)2669, (LPARAM)&pluginInfo);
- }
- return 0;
-}
-
-
-int Load(PLUGINLINK *link) {
-
- pluginLink = link;
- DisableThreadLibraryCalls(g_hInst);
-
- // get memoryManagerInterface address
- mir_getMMI( &mmi );
-
- // register plugin module
- PROTOCOLDESCRIPTOR pd;
- memset(&pd,0,sizeof(pd));
- pd.cbSize = sizeof(pd);
- pd.szName = (char*)szModuleName;
- pd.type = PROTOTYPE_ENCRYPTION;
- CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd);
-
- // hook events
- HookEvent(ME_SYSTEM_MODULESLOADED,onModulesLoaded);
- return 0;
-}
-
-
-int Unload() {
- return 0;
-}
-
-
-// EOF