From 5bf6d4ad267d60f6d641b102b711d7f7f8538bc3 Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Sun, 15 May 2011 13:45:42 +0000 Subject: authstate: added support for the new langpacks git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@98 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- authstate/commonheaders.h | 3 +++ authstate/main.cpp | 20 ++------------------ 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/authstate/commonheaders.h b/authstate/commonheaders.h index aab35c9..746ff48 100644 --- a/authstate/commonheaders.h +++ b/authstate/commonheaders.h @@ -26,6 +26,9 @@ #ifndef COMMHEADERS_H #define COMMHEADERS_H +#define MIRANDA_VER 0x0900 +#define MIRANDA_CUSTOM_LP + #include #include // needed by m_utils.h #include // needed by m_icolib.h > r9256 diff --git a/authstate/main.cpp b/authstate/main.cpp index ef05651..227f78b 100644 --- a/authstate/main.cpp +++ b/authstate/main.cpp @@ -32,6 +32,7 @@ static HANDLE hHookExtraIconsRebuild = NULL, hHookExtraIconsApply = NULL, hConta static HANDLE hPrebuildContactMenu = NULL, hAuthMenuSelected = NULL; static HANDLE hUserMenu = NULL; HANDLE hExtraIcon = NULL; +int hLangpack; IconExtraColumn g_IECAuth = {0}; IconExtraColumn g_IECGrant = {0}; @@ -62,19 +63,6 @@ PLUGININFOEX pluginInfo={ /* DACE7D41-DFA9-4772-89AE-A59A6153E6B2 */ }; -PLUGININFO oldpluginInfo={ - sizeof(PLUGININFO), - pluginInfo.shortName, - pluginInfo.version, - pluginInfo.description, - pluginInfo.author, - pluginInfo.authorEmail, - pluginInfo.copyright, - pluginInfo.homepage, - pluginInfo.flags, - pluginInfo.replacesDefaultModule -}; - extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved) { g_hInst = hinstDLL; @@ -95,11 +83,6 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda return &pluginInfo; } -extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion) -{ - return &oldpluginInfo; -} - INT_PTR getIconToUse(HANDLE hContact, LPARAM lParam) { char *proto = (char *)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0); @@ -360,6 +343,7 @@ int onSystemOKToExit(WPARAM wParam,LPARAM lParam) extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) { pluginLink = link; + mir_getLP(&pluginInfo); hHookModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, onModulesLoaded); hSystemOKToExit = HookEvent(ME_SYSTEM_OKTOEXIT,onSystemOKToExit); -- cgit v1.2.3