summaryrefslogtreecommitdiff
path: root/plugins/TrafficCounter/src
diff options
context:
space:
mode:
authorVlad Mironov <mironych@googlemail.com>2012-09-21 16:09:32 +0000
committerVlad Mironov <mironych@googlemail.com>2012-09-21 16:09:32 +0000
commit6754be273927935a574fa2b60b9ac1446966e55f (patch)
treed540dd83bf3e6972ff1abdcdaef876d5e4a73e82 /plugins/TrafficCounter/src
parent66b70ad58f25694dbf8ede7c5cc7c19a81131087 (diff)
TrafficCounter: исправление для динамической загрузки.
git-svn-id: http://svn.miranda-ng.org/main/trunk@1626 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TrafficCounter/src')
-rw-r--r--plugins/TrafficCounter/src/TrafficCounter.c23
1 files changed, 4 insertions, 19 deletions
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;
}