From 6754be273927935a574fa2b60b9ac1446966e55f Mon Sep 17 00:00:00 2001 From: Vlad Mironov Date: Fri, 21 Sep 2012 16:09:32 +0000 Subject: =?UTF-8?q?TrafficCounter:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B4=D0=BB=D1=8F=20=D0=B4?= =?UTF-8?q?=D0=B8=D0=BD=D0=B0=D0=BC=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=BE?= =?UTF-8?q?=D0=B9=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.miranda-ng.org/main/trunk@1626 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TrafficCounter/res/resource.rc | 3 ++- plugins/TrafficCounter/src/TrafficCounter.c | 23 ++++------------------- 2 files changed, 6 insertions(+), 20 deletions(-) (limited to 'plugins') 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 #include - + + ///////////////////////////////////////////////////////////////////////////// #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; } -- cgit v1.2.3