diff options
Diffstat (limited to 'plugins')
32 files changed, 67 insertions, 3 deletions
diff --git a/plugins/Autorun/main.c b/plugins/Autorun/main.c index c5a498afa1..31eb9790cd 100644 --- a/plugins/Autorun/main.c +++ b/plugins/Autorun/main.c @@ -11,6 +11,7 @@ HINSTANCE hInst;
PLUGINLINK *pluginLink;
HANDLE hHookOptionInit = NULL;
+int hLangpack;
PLUGININFOEX pluginInfoEx=
{ // about plugin
@@ -153,6 +154,7 @@ __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) int __declspec(dllexport) Load(PLUGINLINK *link)
{
pluginLink = link;
+ mir_getLP(&pluginInfoEx);
hHookOptionInit = HookEvent(ME_OPT_INITIALISE,AutorunOptInitialise);
return 0;
}
diff --git a/plugins/Boltun/boltun.cpp b/plugins/Boltun/boltun.cpp index e59d01909e..bdad74deec 100644 --- a/plugins/Boltun/boltun.cpp +++ b/plugins/Boltun/boltun.cpp @@ -45,6 +45,7 @@ //#define DEBUG_LOAD_TIME
struct MM_INTERFACE mmi;
+int hLangpack;
TalkBot* bot = NULL;
@@ -625,6 +626,7 @@ extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVers extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
{
pluginLink = link;
+ mir_getLP(&pluginInfoEx);
mmi.cbSize=sizeof(struct MM_INTERFACE);
CallService(MS_SYSTEM_GET_MMI,0,(LPARAM)&mmi);
diff --git a/plugins/Bonsai/FixOptions/Bonsai.cpp b/plugins/Bonsai/FixOptions/Bonsai.cpp index dd2c33c35f..cddbf70ff5 100644 --- a/plugins/Bonsai/FixOptions/Bonsai.cpp +++ b/plugins/Bonsai/FixOptions/Bonsai.cpp @@ -33,6 +33,7 @@ HBITMAP hbNewlyModified = NULL; HIMAGELIST imgList = NULL;
PLUGINLINK *pluginLink;
+int hLangpack;
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
@@ -79,6 +80,7 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) LogInit();
pluginLink = link;
+ mir_getLP(&pluginInfoEx);
InitServices();
diff --git a/plugins/BuddyExpectator/BuddyExpectator.cpp b/plugins/BuddyExpectator/BuddyExpectator.cpp index ca6c9b4282..a3f833d8c7 100644 --- a/plugins/BuddyExpectator/BuddyExpectator.cpp +++ b/plugins/BuddyExpectator/BuddyExpectator.cpp @@ -29,6 +29,7 @@ HINSTANCE hInst;
PLUGINLINK *pluginLink;
+int hLangpack;
DWORD timer_id = 0;
@@ -926,6 +927,7 @@ int onSystemOKToExit(WPARAM wParam,LPARAM lParam) extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
{
pluginLink = link;
+ mir_getLP(&pluginInfoEx);
setlocale(LC_ALL, "English"); // Set English locale
diff --git a/plugins/CSList/cslist.cpp b/plugins/CSList/cslist.cpp index eac052fb57..f354d68519 100644 --- a/plugins/CSList/cslist.cpp +++ b/plugins/CSList/cslist.cpp @@ -45,6 +45,7 @@ MM_INTERFACE mmi;
LIST_INTERFACE li;
SortedList *servicesList;
+int hLangpack;
// ====[ MAIN ]===============================================================
@@ -79,6 +80,7 @@ extern "C" __declspec( dllexport ) int Load( PLUGINLINK *link ) pluginLink = link;
mir_getMMI(&mmi);
mir_getLI(&li);
+ mir_getLP(&pluginInfoEx);
servicesList = li.List_Create(0, 10);
// support for ComboBoxEx
diff --git a/plugins/Console/Console.c b/plugins/Console/Console.c index 96e56fa3b9..9b09392877 100644 --- a/plugins/Console/Console.c +++ b/plugins/Console/Console.c @@ -85,6 +85,7 @@ typedef struct { struct MM_INTERFACE mmi;
struct UTF8_INTERFACE utfi;
struct LIST_INTERFACE li;
+int hLangpack;
static SortedList lModules = {0};
@@ -1439,6 +1440,7 @@ void InitConsole() mir_getMMI(&mmi);
mir_getUTFI(&utfi);
mir_getLI(&li);
+ mir_getLP(&pluginInfoEx);
lModules.sortFunc = stringCompare;
lModules.increment = 5;
diff --git a/plugins/ContactsPlus/main.cpp b/plugins/ContactsPlus/main.cpp index 7f167c84d0..c609129108 100644 --- a/plugins/ContactsPlus/main.cpp +++ b/plugins/ContactsPlus/main.cpp @@ -27,6 +27,7 @@ HINSTANCE hInst;
PLUGINLINK *pluginLink;
+int hLangpack;
int g_NewProtoAPI = FALSE;
@@ -322,7 +323,8 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) extern "C" __declspec(dllexport) int Load(PLUGINLINK *link)
{
- pluginLink = link;
+ pluginLink = link;
+ mir_getLP(&pluginInfoEx);
InitCommonControls();
InitI18N();
diff --git a/plugins/CountryFlags/main.c b/plugins/CountryFlags/main.c index 2da90447c2..d4b90acc6f 100644 --- a/plugins/CountryFlags/main.c +++ b/plugins/CountryFlags/main.c @@ -25,6 +25,7 @@ PLUGINLINK *pluginLink; struct MM_INTERFACE mmi;
int nCountriesCount;
struct CountryListEntry *countries;
+int hLangpack;
static PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
@@ -120,6 +121,7 @@ __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) __declspec(dllexport) int Load(PLUGINLINK *link)
{
pluginLink=link;
+ mir_getLP(&pluginInfoEx);
/* existance of MS_SYSTEM_GETVERSION and MS_LANGPACK_TRANSLATESTRING
* is checked in MirandaPluginInfo().
diff --git a/plugins/CryptoPP/main.cpp b/plugins/CryptoPP/main.cpp index 99fc56f467..69f30cc1ff 100644 --- a/plugins/CryptoPP/main.cpp +++ b/plugins/CryptoPP/main.cpp @@ -1,5 +1,6 @@ #include "commonheaders.h"
+int hLangpack;
// dllmain
BOOL WINAPI DllMain(HINSTANCE hInst, DWORD dwReason, LPVOID) {
@@ -64,6 +65,7 @@ int Load(PLUGINLINK *link) { // get memoryManagerInterface address
mir_getMMI( &mmi );
+ mir_getLP(&pluginInfoEx);
// register plugin module
PROTOCOLDESCRIPTOR pd;
diff --git a/plugins/Dbx_tree/init.cpp b/plugins/Dbx_tree/init.cpp index f901e9d13e..72ac33c1c8 100644 --- a/plugins/Dbx_tree/init.cpp +++ b/plugins/Dbx_tree/init.cpp @@ -23,6 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "Interface.h"
HINSTANCE hInstance = NULL;
+int hLangpack;
static const DWORD gMinMirVer = 0x00080000;
static const MUUID gInterfaces[] = {MIID_DATABASE, MIID_LAST};
@@ -67,6 +68,7 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) extern "C" __declspec(dllexport) int Load(PLUGINLINK * Link)
{
+ mir_getLP(&pluginInfoEx);
return 1;
}
diff --git a/plugins/FavContacts/src/main.cpp b/plugins/FavContacts/src/main.cpp index 5e5a1f1f9a..1469830e4e 100644 --- a/plugins/FavContacts/src/main.cpp +++ b/plugins/FavContacts/src/main.cpp @@ -27,6 +27,7 @@ HINSTANCE g_hInst; struct LIST_INTERFACE li;
struct MM_INTERFACE mmi;
struct UTF8_INTERFACE utfi;
+int hLangpack;
// {AC8B66B3-AFE1-4475-BABA-49783BA39A66}
#define MIID_FAVCONTACTS { 0xac8b66b3, 0xafe1, 0x4475, { 0xba, 0xba, 0x49, 0x78, 0x3b, 0xa3, 0x9a, 0x66 } }
@@ -320,6 +321,7 @@ extern "C" __declspec(dllexport) int Load(PLUGINLINK * link) mir_getLI(&li);
mir_getMMI(&mmi);
mir_getUTFI(&utfi);
+ mir_getLP(&pluginInfoEx);
g_contactCache = new CContactCache;
diff --git a/plugins/FirstRun/main.c b/plugins/FirstRun/main.c index 6447bf6854..b4ccc3f124 100644 --- a/plugins/FirstRun/main.c +++ b/plugins/FirstRun/main.c @@ -3,6 +3,7 @@ HINSTANCE hInst;
PLUGINLINK *pluginLink;
HANDLE hModulesLoaded;
+int hLangpack;
PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
@@ -59,6 +60,7 @@ __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) int __declspec(dllexport) Load(PLUGINLINK *link)
{
pluginLink=link;
+ mir_getLP(&pluginInfoEx);
hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED,ModulesLoaded);
return 0;
}
diff --git a/plugins/FlashAvatars/cflash.cpp b/plugins/FlashAvatars/cflash.cpp index 890407e1e3..a50825ba45 100644 --- a/plugins/FlashAvatars/cflash.cpp +++ b/plugins/FlashAvatars/cflash.cpp @@ -94,6 +94,7 @@ HINSTANCE g_hInst = 0; PLUGINLINK *pluginLink;
MM_INTERFACE mmi;
LIST_INTERFACE li;
+int hLangpack;
HANDLE hNetlibUser;
@@ -679,6 +680,7 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) pluginLink = link;
mir_getMMI(&mmi);
mir_getLI(&li);
+ mir_getLP(&pluginInfoEx);
hHooks[0] = HookEvent(ME_SYSTEM_MODULESLOADED, systemModulesLoaded);
diff --git a/plugins/FloatingContacts/main.cpp b/plugins/FloatingContacts/main.cpp index 9246e6f2b2..62adc003d0 100644 --- a/plugins/FloatingContacts/main.cpp +++ b/plugins/FloatingContacts/main.cpp @@ -123,6 +123,7 @@ BOOL bIsCListShow = TRUE; HANDLE hRemoveThumb = NULL;
HANDLE hMainHideAllThumbs = NULL;
HANDLE hHideWhenCListShow = NULL;
+int hLangpack;
//Options
@@ -232,6 +233,7 @@ extern "C" int __declspec(dllexport) Load( PLUGINLINK *link ) pluginLink = link;
mir_getLI(&li);
+ mir_getLP(&pluginInfoEx);
hevModules = HookEvent( ME_SYSTEM_MODULESLOADED, OnModulesLoded );
bNT = GetOSPlatform();
diff --git a/plugins/Gender/main.cpp b/plugins/Gender/main.cpp index e66d3ef41b..8b3d9b9bb5 100644 --- a/plugins/Gender/main.cpp +++ b/plugins/Gender/main.cpp @@ -44,6 +44,7 @@ byte bEnableClistIcon = 1; // do we need clist icon? byte bDrawNoGenderIcon = 0; // enable icon when no info?
byte bContactMenuItems = 1; // do we need a contact menu items?
byte bMetaAvail = 0; // metacontacts installed?
+int hLangpack;
extern int onOptInitialise(WPARAM wParam, LPARAM lParam);
@@ -445,6 +446,7 @@ int onSystemOKToExit(WPARAM wParam,LPARAM lParam) extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
{
pluginLink = link;
+ mir_getLP(&pluginInfoEx);
hHookModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, onModulesLoaded);
hSystemOKToExit = HookEvent(ME_SYSTEM_OKTOEXIT,onSystemOKToExit);
diff --git a/plugins/HistoryLinkListPlus/linklist.c b/plugins/HistoryLinkListPlus/linklist.c index f219e02ea7..4798e41626 100644 --- a/plugins/HistoryLinkListPlus/linklist.c +++ b/plugins/HistoryLinkListPlus/linklist.c @@ -46,6 +46,7 @@ HINSTANCE hRichEdit; PLUGINLINK *pluginLink;
HANDLE hWindowList;
HCURSOR splitCursor;
+int hLangpack;
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
@@ -124,6 +125,7 @@ int __declspec(dllexport) Load(PLUGINLINK *link) WNDCLASS wndclass;
pluginLink = link;
+ mir_getLP(&pluginInfoEx);
CreateServiceFunction("Linklist/MenuCommand", LinkList_Main);
ZeroMemory(&linklistmenuitem, sizeof(linklistmenuitem));
linklistmenuitem.cbSize = sizeof(linklistmenuitem);
diff --git a/plugins/HistorySweeperLight/main.c b/plugins/HistorySweeperLight/main.c index e658b19015..f82ca35366 100644 --- a/plugins/HistorySweeperLight/main.c +++ b/plugins/HistorySweeperLight/main.c @@ -28,6 +28,7 @@ PLUGINLINK *pluginLink; struct MM_INTERFACE mmi;
static HANDLE hHooks[5];
+int hLangpack;
static PLUGININFOEX pluginInfoEx =
{
@@ -164,6 +165,7 @@ int __declspec(dllexport) Load(PLUGINLINK *link) pluginLink = link;
mir_getMMI(&mmi);
+ mir_getLP(&pluginInfoEx);
hHooks[0] = HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
hHooks[1] = HookEvent(ME_OPT_INITIALISE, HSOptInitialise);
diff --git a/plugins/MenuItemEx/main.c b/plugins/MenuItemEx/main.c index 1533d6bb8a..df21a89fce 100644 --- a/plugins/MenuItemEx/main.c +++ b/plugins/MenuItemEx/main.c @@ -30,6 +30,7 @@ BOOL bMetaContacts, bMir_08; PROTOACCOUNT **accs;
OPENOPTIONSDIALOG ood;
int protoCount;
+int hLangpack;
static LONG_PTR OldAuthReqEditProc;
struct {
@@ -1316,6 +1317,7 @@ __declspec(dllexport)int Load(PLUGINLINK *link) {
pluginLink=link;
mir_getMMI( &mmi );
+ mir_getLP(&pluginInfoEx);
hHooks[6] = HookEvent(ME_SYSTEM_MODULESLOADED,PluginInit);
return 0;
}
diff --git a/plugins/ProfileManager/pmanagerEx.c b/plugins/ProfileManager/pmanagerEx.c index 63f57f5bea..4de242d464 100644 --- a/plugins/ProfileManager/pmanagerEx.c +++ b/plugins/ProfileManager/pmanagerEx.c @@ -20,6 +20,7 @@ PLUGINLINK *pluginLink; TCHAR fn[MAX_PATH];
TCHAR lmn[MAX_PATH];
TCHAR* pathn;
+int hLangpack;
#define SIZEOF(x) (sizeof(x)/sizeof(*x))
@@ -78,6 +79,7 @@ int __declspec(dllexport) Load(PLUGINLINK *link) {
CLISTMENUITEM mi;
pluginLink=link;
+ mir_getLP(&pluginInfoEx);
CreateServiceFunction("Database/LoadPM",LoadPM);
ZeroMemory(&mi,sizeof(mi));
diff --git a/plugins/QuickMessages/main.c b/plugins/QuickMessages/main.c index 6a387d5bc9..a8e767a12d 100644 --- a/plugins/QuickMessages/main.c +++ b/plugins/QuickMessages/main.c @@ -37,6 +37,7 @@ struct MM_INTERFACE mmi; struct LIST_INTERFACE li;
PLUGINLINK *pluginLink;
+int hLangpack;
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
@@ -402,6 +403,7 @@ int __declspec(dllexport)Load(PLUGINLINK *link) pluginLink=link;
mir_getMMI(&mmi);
mir_getLI(&li);
+ mir_getLP(&pluginInfoEx);
hEventDbPluginsLoaded=HookEvent(ME_SYSTEM_MODULESLOADED,PluginInit);
hEventDbPreShutdown=HookEvent(ME_SYSTEM_PRESHUTDOWN,PreShutdown);
diff --git a/plugins/Rate/main.cpp b/plugins/Rate/main.cpp index 9810378eca..d3b4e767ca 100644 --- a/plugins/Rate/main.cpp +++ b/plugins/Rate/main.cpp @@ -54,6 +54,7 @@ IconExtraColumn g_IECRateLow = {0}; IconExtraColumn g_IECClear = {0};
int clistIcon = 0; //Icon slot to use
byte bRate = 0;
+int hLangpack;
extern int onOptInitialise(WPARAM wParam, LPARAM lParam);
@@ -268,7 +269,8 @@ int onContactSettingChanged(WPARAM wParam,LPARAM lParam) extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
{
- pluginLink=link;
+ pluginLink=link;
+ mir_getLP(&pluginInfoEx);
hHookModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, onModulesLoaded);
hSystemOKToExit = HookEvent(ME_SYSTEM_OKTOEXIT,onSystemOKToExit);
diff --git a/plugins/TooltipNotify/src/main.cpp b/plugins/TooltipNotify/src/main.cpp index 5695120354..a24d621f14 100644 --- a/plugins/TooltipNotify/src/main.cpp +++ b/plugins/TooltipNotify/src/main.cpp @@ -38,6 +38,7 @@ static bool g_bRightModule = false; // i.e. ansi for win9x, and unicode for winn // Main global object
static CTooltipNotify *g_pTooltipNotify = 0;
+int hLangpack;
//================================================================================
@@ -150,6 +151,7 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *pLink) #endif
pluginLink = pLink;
+ mir_getLP(&pluginInfoEx);
g_pTooltipNotify = new CTooltipNotify(g_hInstDLL);
assert(g_pTooltipNotify!=0);
diff --git a/plugins/UserGuide/main.c b/plugins/UserGuide/main.c index 853658300c..f987ce722f 100644 --- a/plugins/UserGuide/main.c +++ b/plugins/UserGuide/main.c @@ -4,6 +4,7 @@ struct MM_INTERFACE mmi; HINSTANCE hInst;
PLUGINLINK *pluginLink;
HANDLE hModulesLoaded;
+int hLangpack;
PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
@@ -119,6 +120,7 @@ int __declspec(dllexport) Load(PLUGINLINK *link) {
pluginLink=link;
mir_getMMI(&mmi);
+ mir_getLP(&pluginInfoEx);
hModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED,ModulesLoaded);
return 0;
}
diff --git a/plugins/UserInfoEx/init.cpp b/plugins/UserInfoEx/init.cpp index 6c088523b4..948611de70 100644 --- a/plugins/UserInfoEx/init.cpp +++ b/plugins/UserInfoEx/init.cpp @@ -71,6 +71,7 @@ static HANDLE ghTopToolBarLoaded = NULL; static HANDLE ghModernToolBarLoaded = NULL;
static HANDLE ghShutdownHook = NULL;
static HANDLE ghPrebuildStatusMenu = NULL;
+int hLangpack;
/*
============================================================================================
@@ -311,6 +312,7 @@ extern "C" INT __declspec(dllexport) Load(PLUGINLINK *link) INITCOMMONCONTROLSEX ccEx;
pluginLink = link;
+ mir_getLP(&pluginInfoEx);
if (link && CoreCheck())
{
// init common controls
diff --git a/plugins/dbrw/dbrw.c b/plugins/dbrw/dbrw.c index c60627a6aa..79e827981a 100644 --- a/plugins/dbrw/dbrw.c +++ b/plugins/dbrw/dbrw.c @@ -50,6 +50,7 @@ HINSTANCE g_hInst; struct MM_INTERFACE mmi;
struct UTF8_INTERFACE utfi;
struct LIST_INTERFACE li;
+int hLangpack;
sqlite3 *g_sqlite;
char g_szDbPath[MAX_PATH];
@@ -230,6 +231,7 @@ static int dbrw_Load(char *profile, void *link) mir_getMMI( &mmi );
mir_getLI( &li );
mir_getUTFI( &utfi );
+ mir_getLP(&pluginInfoEx);
{
char *szLocalPath = mir_utf8encode(profile);
diff --git a/plugins/freeimage/Miranda/main.cpp b/plugins/freeimage/Miranda/main.cpp index 804e349d7e..c9c7905500 100644 --- a/plugins/freeimage/Miranda/main.cpp +++ b/plugins/freeimage/Miranda/main.cpp @@ -46,6 +46,7 @@ Last change by : $Author: rainwater $ #include "../Source/libpng/png.h"
PLUGINLINK *pluginLink = NULL;
+int hLangpack;
static const PLUGININFOEX pluginInfoEx = {
sizeof(PLUGININFOEX),
@@ -1236,6 +1237,7 @@ static int IMGSERVICE_Load() extern "C" int __declspec(dllexport) Load(PLUGINLINK * link)
{
pluginLink = link;
+ mir_getLP(&pluginInfoEx);
return IMGSERVICE_Load();
}
diff --git a/plugins/mTextControl/src/main.cpp b/plugins/mTextControl/src/main.cpp index 16dbc20015..285a3f2c8d 100644 --- a/plugins/mTextControl/src/main.cpp +++ b/plugins/mTextControl/src/main.cpp @@ -32,6 +32,7 @@ Last change by : $Author: Merlin_de $ HINSTANCE hInst = 0;
PLUGINLINK *pluginLink = 0;
+int hLangpack;
HMODULE hMsfteditDll = 0;
HRESULT (WINAPI *MyCreateTextServices)(IUnknown *punkOuter, ITextHost *pITextHost, IUnknown **ppUnk);
@@ -95,6 +96,7 @@ extern "C" __declspec(dllexport) const MUUID *MirandaPluginInterfaces(void) extern "C" __declspec(dllexport) int Load(PLUGINLINK *link)
{
pluginLink = link;
+ mir_getLP(&pluginInfoEx);
//6.0A SDK is missing RichEd20.lib for x64
//http://connect.microsoft.com/VisualStudio/feedback/details/551071/the-6-0a-sdk-is-missing-riched20-lib-for-x64
diff --git a/plugins/metacontacts/meta_main.c b/plugins/metacontacts/meta_main.c index 7554992f63..da442c8a01 100644 --- a/plugins/metacontacts/meta_main.c +++ b/plugins/metacontacts/meta_main.c @@ -89,6 +89,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. struct MM_INTERFACE mmi;
BOOL os_unicode_enabled = FALSE;
+int hLangpack;
//! Information gathered by Miranda, displayed in the plugin pane of the Option Dialog
PLUGININFOEX pluginInfo={
@@ -167,7 +168,8 @@ int __declspec(dllexport)Load(PLUGINLINK *link) pluginLink=link;
- mir_getMMI(&mmi);
+ mir_getMMI(&mmi);
+ mir_getLP(&pluginInfoEx);
os_unicode_enabled = IsUnicodeOS();
diff --git a/plugins/modernopt/main.cpp b/plugins/modernopt/main.cpp index dd40c325e9..5adb79cc25 100644 --- a/plugins/modernopt/main.cpp +++ b/plugins/modernopt/main.cpp @@ -5,6 +5,7 @@ PLUGINLINK *pluginLink; HINSTANCE hInst;
MM_INTERFACE mmi;
LIST_INTERFACE li;
+int hLangpack;
#if defined( _UNICODE )
// {621f886b-a7f6-457f-9d62-8ee84c275993}
@@ -65,6 +66,7 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) pluginLink = link;
mir_getMMI( &mmi );
mir_getLI( &li );
+ mir_getLP(&pluginInfoEx);
LoadModernOptsModule();
return 0;
diff --git a/plugins/updater/updater.cpp b/plugins/updater/updater.cpp index fa3a71fa69..00d89489af 100644 --- a/plugins/updater/updater.cpp +++ b/plugins/updater/updater.cpp @@ -13,6 +13,7 @@ HANDLE hEventOptInit, hEventModulesLoaded, hEventIdleChanged, hToolBarLoaded; MM_INTERFACE mmi;
UTF8_INTERFACE utfi;
LIST_INTERFACE li;
+int hLangpack;
bool is_idle = false;
//#define TESTING // defined here to reduce build time blowout caused by changing common.h
@@ -259,6 +260,7 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) mir_getLI(&li);
mir_getMMI(&mmi);
mir_getUTFI(&utfi);
+ mir_getLP(&pluginInfoEx);
// save global status from clist - will be restored after update check if that option is enabled, or in modules loaded if not
options.start_offline = (DBGetContactSettingByte(0, MODULE, "StartOffline", 0) == 1); // load option here - rest loading in modulesloaded
diff --git a/plugins/w7ui/main.cpp b/plugins/w7ui/main.cpp index a8763a60a6..80d223e4b9 100644 --- a/plugins/w7ui/main.cpp +++ b/plugins/w7ui/main.cpp @@ -31,6 +31,7 @@ HINSTANCE g_hInst; struct LIST_INTERFACE li;
struct MM_INTERFACE mmi;
+int hLangpack;
// {3625ACB8-794C-4727-88EA-76DBBAC6D200}
#define MIID_W7UI { 0x3625acb8, 0x794c, 0x4727, { 0x88, 0xea, 0x76, 0xdb, 0xba, 0xc6, 0xd2, 0x0 } }
@@ -80,6 +81,7 @@ extern "C" __declspec(dllexport) int Load(PLUGINLINK * link) pluginLink = link;
mir_getLI(&li);
mir_getMMI(&mmi);
+ mir_getLP(&pluginInfoEx);
LoadW7UI();
diff --git a/plugins/yapp/popups2.cpp b/plugins/yapp/popups2.cpp index d95c88411a..57ca16208f 100644 --- a/plugins/yapp/popups2.cpp +++ b/plugins/yapp/popups2.cpp @@ -27,6 +27,7 @@ COLORREF colBg = GetSysColor(COLOR_3DSHADOW); HFONT hFontFirstLine = 0, hFontSecondLine = 0, hFontTime = 0;
COLORREF colFirstLine = RGB(255, 0, 0), colSecondLine = 0, colTime = RGB(0, 0, 255), colBorder = RGB(0, 0, 0),
colSidebar = RGB(128, 128, 128), colTitleUnderline = GetSysColor(COLOR_3DSHADOW);
+int hLangpack;
PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
@@ -342,6 +343,7 @@ extern "C" int POPUPS2_API Load(PLUGINLINK *link) { mir_getLI(&li);
mir_getMMI(&mmi);
+ mir_getLP(&pluginInfoEx);
InitMessagePump();
InitOptions();
|