diff options
author | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-05-15 13:45:42 +0000 |
---|---|---|
committer | mataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-05-15 13:45:42 +0000 |
commit | 5bf6d4ad267d60f6d641b102b711d7f7f8538bc3 (patch) | |
tree | c6146437c82459fa88a2ba37bd105933776f4872 | |
parent | f2007b09a799f7259632a761edab9598e766cfbb (diff) |
authstate:
added support for the new langpacks
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@98 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
-rw-r--r-- | authstate/commonheaders.h | 3 | ||||
-rw-r--r-- | 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 <windows.h>
#include <stdio.h> // needed by m_utils.h
#include <stddef.h> // 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);
|