summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TrafficCounter/res/resource.rc3
-rw-r--r--plugins/TrafficCounter/src/TrafficCounter.c23
2 files changed, 6 insertions, 20 deletions
diff --git a/plugins/TrafficCounter/res/resource.rc b/plugins/TrafficCounter/res/resource.rc
index dfc0251b23..dad0617b25 100644
--- a/plugins/TrafficCounter/res/resource.rc
+++ b/plugins/TrafficCounter/res/resource.rc
@@ -10,7 +10,8 @@
//
#include <windows.h>
#include <winres.h>
-
+
+
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
diff --git a/plugins/TrafficCounter/src/TrafficCounter.c b/plugins/TrafficCounter/src/TrafficCounter.c
index b0e4f3ee17..114cef3637 100644
--- a/plugins/TrafficCounter/src/TrafficCounter.c
+++ b/plugins/TrafficCounter/src/TrafficCounter.c
@@ -116,28 +116,13 @@ __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion)
return &pluginInfoEx;
}
-static const MUUID interfaces[] = {MIID_TRAFFICCOUNTER, MIID_LAST};
+__declspec(dllexport) const MUUID interfaces[] = {MIID_TRAFFICCOUNTER, MIID_LAST};
-__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
- return interfaces;
-}
-
-BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
-{
-/* switch(fdwReason)
- {
- case DLL_PROCESS_ATTACH:*/
- hInst = hinstDLL;
-/* DisableThreadLibraryCalls(hInst);
- break;
+ hInst = hinstDLL;
+ DisableThreadLibraryCalls(hInst);
- case DLL_PROCESS_DETACH:
- PostMessage(TrafficHwnd,WM_USER+697,0,666);
- //
- break;
- }*/
- //
return TRUE;
}