summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--authstate/commonheaders.h3
-rw-r--r--authstate/main.cpp20
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);