diff options
Diffstat (limited to 'plugins')
115 files changed, 324 insertions, 259 deletions
diff --git a/plugins/AVS/main.cpp b/plugins/AVS/main.cpp index 984c7e3e05..eb690a3b9b 100644 --- a/plugins/AVS/main.cpp +++ b/plugins/AVS/main.cpp @@ -104,7 +104,6 @@ PLUGININFOEX pluginInfoEx = { "Copyright 2000-2012 Miranda-IM project",
"http://www.miranda-im.org",
UNICODE_AWARE,
- 0,
// {E00F1643-263C-4599-B84B-053E5C511D29}
{ 0xe00f1643, 0x263c, 0x4599, { 0xb8, 0x4b, 0x5, 0x3e, 0x5c, 0x51, 0x1d, 0x29 } }
};
diff --git a/plugins/AddContactPlus/main.cpp b/plugins/AddContactPlus/main.cpp index e7c33cb9e0..56d8b0ad1b 100644 --- a/plugins/AddContactPlus/main.cpp +++ b/plugins/AddContactPlus/main.cpp @@ -36,7 +36,6 @@ PLUGININFOEX pluginInfo = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
// {6471D451-2FE0-4ee2-850E-9F84F3C0D187}
{ 0x6471d451, 0x2fe0, 0x4ee2, { 0x85, 0xe, 0x9f, 0x84, 0xf3, 0xc0, 0xd1, 0x87 } }
};
diff --git a/plugins/Alarms/alarms.cpp b/plugins/Alarms/alarms.cpp index 27a5c53a97..c9305afce2 100644 --- a/plugins/Alarms/alarms.cpp +++ b/plugins/Alarms/alarms.cpp @@ -38,8 +38,7 @@ PLUGININFOEX pluginInfo={ __AUTHOREMAIL,
__COPYRIGHT,
__AUTHORWEB,
- UNICODE_AWARE, //not transient
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE,
{ 0x4dd7762b, 0xd612, 0x4f84, { 0xaa, 0x86, 0x6, 0x8f, 0x17, 0x85, 0x9b, 0x6d } } // {4DD7762B-D612-4f84-AA86-068F17859B6D}
};
diff --git a/plugins/AssocMgr/main.cpp b/plugins/AssocMgr/main.cpp index 9e81a0b74b..e6095c25c4 100644 --- a/plugins/AssocMgr/main.cpp +++ b/plugins/AssocMgr/main.cpp @@ -36,7 +36,6 @@ PLUGININFOEX pluginInfo={ __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
// {52685CD7-0EC7-44c1-A1A6-381612418202}
{0x52685cd7,0xec7,0x44c1,{0xa1,0xa6,0x38,0x16,0x12,0x41,0x82,0x2}}
};
diff --git a/plugins/AuthState/main.cpp b/plugins/AuthState/main.cpp index ba37eeeb3d..0f168c0fe1 100644 --- a/plugins/AuthState/main.cpp +++ b/plugins/AuthState/main.cpp @@ -56,8 +56,7 @@ PLUGININFOEX pluginInfo={ __AUTHOREMAIL,
__COPYRIGHT,
__AUTHORWEB,
- UNICODE_AWARE,
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
{0xdace7d41, 0xdfa9, 0x4772, {0x89, 0xae, 0xa5, 0x9a, 0x61, 0x53, 0xe6, 0xb2}}
/* DACE7D41-DFA9-4772-89AE-A59A6153E6B2 */
};
diff --git a/plugins/AutoRun/main.cpp b/plugins/AutoRun/main.cpp index 624a58d131..36eebd47f2 100644 --- a/plugins/AutoRun/main.cpp +++ b/plugins/AutoRun/main.cpp @@ -15,7 +15,6 @@ PLUGININFOEX pluginInfoEx= "Copyright © 2002-2007 Sergey V. Gershovich a.k.a. Jazzy$",
"http://miranda-im.org/download/index.php?action=viewfile&id=285",
UNICODE_AWARE,
- 0,
MIID_AUTORUN
};
diff --git a/plugins/AutoShutdown/main.c b/plugins/AutoShutdown/main.c new file mode 100644 index 0000000000..d8122bcfac --- /dev/null +++ b/plugins/AutoShutdown/main.c @@ -0,0 +1,191 @@ +/*
+
+'AutoShutdown'-Plugin for Miranda IM
+
+Copyright 2004-2007 H. Herkenrath
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation; either version 2
+of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program (Shutdown-License.txt); if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+*/
+
+#include "common.h"
+#include "version.h"
+
+HINSTANCE hInst;
+PLUGINLINK *pluginLink;
+struct MM_INTERFACE mmi;
+static HANDLE hHookModulesLoaded;
+HANDLE hActiveIcon,hInactiveIcon;
+
+PLUGININFOEX pluginInfo={
+ sizeof(PLUGININFOEX),
+ "AutoShutdown",
+ PLUGIN_VERSION,
+#if defined(_DEBUG)
+ "Development build not intended for release. ("__DATE__")",
+#else
+ "Adds the possibility to shutdown the computer when a specified event occurs.", /* autotranslated */
+#endif
+ "H. Herkenrath",
+ PLUGIN_EMAIL, /* @ will be set later */
+ "© 2004-2007 H. Herkenrath",
+ PLUGIN_WEBSITE,
+ UNICODE_AWARE,
+#if defined(_UNICODE)
+ // {9DE24579-5C5C-49aa-80E8-4D38E4344E63}
+ {0x9de24579,0x5c5c,0x49aa,{0x80,0xe8,0x4d,0x38,0xe4,0x34,0x4e,0x63}},
+#else
+ // {7C0DD208-94D8-4283-879A-E6F86135B826}
+ {0x7c0dd208,0x94d8,0x4283,{0x87,0x9a,0xe6,0xf8,0x61,0x35,0xb8,0x26}}
+#endif
+};
+static const MUUID interfaces[]={MIID_SHUTDOWN,MIID_LAST};
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,void *pReserved)
+{
+ UNREFERENCED_PARAMETER(pReserved);
+ if(fdwReason==DLL_PROCESS_ATTACH)
+ /* Do not call this function from a DLL that is linked to the static C run-time library (CRT).
+ * The static CRT requires DLL_THREAD_ATTACH and DLL_THREAD_DETATCH notifications to function properly. */
+ DisableThreadLibraryCalls(hInst=hinstDLL);
+ return TRUE;
+}
+
+static void InstallFile(const TCHAR *pszFileName,const TCHAR *pszDestSubDir)
+{
+ TCHAR szFileFrom[MAX_PATH+1],szFileTo[MAX_PATH+1],*p;
+ HANDLE hFile;
+
+ if(!GetModuleFileName(hInst,szFileFrom,SIZEOF(szFileFrom)-lstrlen(pszFileName)))
+ return;
+ p=_tcsrchr(szFileFrom,_T('\\'));
+ if(p!=NULL) *(++p)=0;
+ lstrcat(szFileFrom,pszFileName); /* buffer safe */
+
+ hFile=CreateFile(szFileFrom,0,FILE_SHARE_READ,0,OPEN_EXISTING,0,0);
+ if(hFile==INVALID_HANDLE_VALUE) return;
+ CloseHandle(hFile);
+
+ if(!GetModuleFileName(NULL,szFileTo,SIZEOF(szFileTo)-lstrlen(pszDestSubDir)-lstrlen(pszFileName)))
+ return;
+ p=_tcsrchr(szFileTo,_T('\\'));
+ if(p!=NULL) *(++p)=0;
+ lstrcat(szFileTo,pszDestSubDir); /* buffer safe */
+ CreateDirectory(szFileTo,NULL);
+ lstrcat(szFileTo,pszFileName); /* buffer safe */
+
+ if(!MoveFile(szFileFrom,szFileTo) && GetLastError()==ERROR_ALREADY_EXISTS) {
+ DeleteFile(szFileTo);
+ MoveFile(szFileFrom,szFileTo);
+ }
+}
+
+static int ShutdownModulesLoaded(WPARAM wParam,LPARAM lParam)
+{
+ UNREFERENCED_PARAMETER(wParam);
+ UNREFERENCED_PARAMETER(lParam);
+ if(ServiceExists("DBEditorpp/RegisterSingleModule"))
+ CallService("DBEditorpp/RegisterSingleModule",(WPARAM)"AutoShutdown",0);
+ /* merged thundershutdown plugin */
+ if(GetModuleHandleA("tshutdown.dll")) {
+ DBWriteContactSettingByte(NULL,"PluginDisable","tshutdown.dll",1);
+ DBWriteContactSettingByte(NULL,"AutoShutdown","WeatherShutdown",1);
+ }
+ return 0;
+}
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+__declspec(dllexport) const PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion)
+{
+ if(mirandaVersion<PLUGIN_MAKE_VERSION(0,1,0,1)) return NULL;
+ pluginInfo.cbSize=sizeof(PLUGININFO); /* needed as v0.6 does equality check */
+ /* email obfuscated, made .rdata writable */
+ pluginInfo.authorEmail[PLUGIN_EMAIL_ATT_POS-1]='@';
+ return (PLUGININFO*)&pluginInfo; /* header is the same */
+}
+
+__declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+{
+ UNREFERENCED_PARAMETER(mirandaVersion);
+ pluginInfo.cbSize=sizeof(PLUGININFOEX);
+ /* email obfuscated, made .rdata writable */
+ pluginInfo.authorEmail[PLUGIN_EMAIL_ATT_POS-1]='@';
+ return &pluginInfo;
+}
+
+__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
+{
+ return interfaces;
+}
+
+__declspec(dllexport) int Load(PLUGINLINK *link)
+{
+ INITCOMMONCONTROLSEX icc;
+ pluginLink=link;
+
+ /* existance of MS_SYSTEM_GETVERSION and MS_LANGPACK_TRANSLATESTRING
+ * is checked in MirandaPluginInfo().
+ * Not placed in MirandaPluginInfo() to avoid MessageBoxes on plugin options.
+ * Using ANSI as LANG_UNICODE might not be supported. */
+ if(CallService(MS_SYSTEM_GETVERSION,0,0)<NEEDED_MIRANDA_VERSION) {
+ char szText[256];
+ mir_snprintf(szText,sizeof(szText),Translate("The AutoShutdown plugin can not be loaded. It requires Miranda IM %hs or later."),NEEDED_MIRANDA_VERSION_STR);
+ MessageBoxA(NULL,szText,Translate("AutoShutdown Plugin"),MB_OK|MB_ICONERROR|MB_SETFOREGROUND|MB_TOPMOST|MB_TASKMODAL);
+ return 1;
+ }
+ if(!ServiceExists(MS_DB_CONTACT_GETSETTING_STR)) return 1; /* dbx3x v0.5.1.0 */
+ if(mir_getMMI(&mmi)) return 1;
+ icc.dwSize=sizeof(icc);
+ icc.dwICC=ICC_DATE_CLASSES|ICC_UPDOWN_CLASS|ICC_PROGRESS_CLASS;
+ if(!InitCommonControlsEx(&icc)) return 1;
+
+ if(InitFrame()) return 1; /* before icons */
+
+ /* shared */
+ IcoLib_AddIconRes("AutoShutdown_Header",TranslateT("Automatic Shutdown"),TranslateT("Header"),hInst,IDI_HEADER,TRUE);
+ hActiveIcon=IcoLib_AddIconRes("AutoShutdown_Active",TranslateT("Automatic Shutdown"),TranslateT("Active"),hInst,IDI_ACTIVE,FALSE);
+ hInactiveIcon=IcoLib_AddIconRes("AutoShutdown_Inactive",TranslateT("Automatic Shutdown"),TranslateT("Inactive"),hInst,IDI_INACTIVE,FALSE);
+
+ InitShutdownSvc();
+ InitWatcher(); /* before InitSettingsDlg() */
+ InitSettingsDlg();
+ InitOptions();
+
+ /* installation */
+ InstallFile(_T("Shutdown-Readme.txt"),_T("Docs\\"));
+ InstallFile(_T("Shutdown-License.txt"),_T("Docs\\"));
+ InstallFile(_T("Shutdown-SDK.zip"),_T("Docs\\"));
+ InstallFile(_T("countdown.wav"),_T("Sounds\\"));
+ hHookModulesLoaded=HookEvent(ME_SYSTEM_MODULESLOADED,ShutdownModulesLoaded);
+ return 0;
+}
+
+__declspec(dllexport) int Unload(void)
+{
+ UnhookEvent(hHookModulesLoaded);
+
+ UninitOptions();
+ UninitSettingsDlg(); /* before UninitWatcher() */
+ UninitWatcher(); /* before UninitFrame() */
+ UninitFrame();
+ UninitShutdownSvc();
+ return 0;
+}
+
+#ifdef __cplusplus
+}
+#endif
diff --git a/plugins/BASS_interface/Main.cpp b/plugins/BASS_interface/Main.cpp index 7dfb902cb4..46e1b050e9 100644 --- a/plugins/BASS_interface/Main.cpp +++ b/plugins/BASS_interface/Main.cpp @@ -17,7 +17,6 @@ PLUGININFOEX pluginInfo={ __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
MIID_BASSINT
};
diff --git a/plugins/BasicHistory/BasicHistory.cpp b/plugins/BasicHistory/BasicHistory.cpp index 89d15167cd..e28278e68b 100644 --- a/plugins/BasicHistory/BasicHistory.cpp +++ b/plugins/BasicHistory/BasicHistory.cpp @@ -46,9 +46,10 @@ bool g_SmileyAddAvail = false; char* metaContactProto = NULL;
const IID IID_ITextDocument={0x8CC497C0, 0xA1DF, 0x11ce, {0x80, 0x98, 0x00, 0xAA, 0x00, 0x47, 0xBE, 0x5D}};
-#define MODULE "BasicHistory"
+#define MODULE "BasicHistory"
-PLUGININFOEX pluginInfo={
+PLUGININFOEX pluginInfo =
+{
sizeof(PLUGININFOEX),
__PLUGIN_NAME,
PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM),
@@ -58,7 +59,6 @@ PLUGININFOEX pluginInfo={ __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- DEFMOD_UIHISTORY,
MIID_BASICHISTORY
};
diff --git a/plugins/Boltun/boltun.cpp b/plugins/Boltun/boltun.cpp index 9e4881c080..52e140d509 100644 --- a/plugins/Boltun/boltun.cpp +++ b/plugins/Boltun/boltun.cpp @@ -67,7 +67,6 @@ PLUGININFOEX pluginInfo={ "© 2003-2008 Alexander S. Kiselev A.K.A. KAS, Valentin Pavlyuchenko",
"http://miranda-im.org",
UNICODE_AWARE,
- 0,
// {488C5C84-56DA-434F-96F1-B18900DEF760}
{ 0x488c5c84, 0x56da, 0x434f, { 0x96, 0xf1, 0xb1, 0x89, 0x0, 0xde, 0xf7, 0x60 } }
};
diff --git a/plugins/BossKeyPlus/BossKey.cpp b/plugins/BossKeyPlus/BossKey.cpp index 1f115858b1..e19c7bc094 100644 --- a/plugins/BossKeyPlus/BossKey.cpp +++ b/plugins/BossKeyPlus/BossKey.cpp @@ -67,7 +67,6 @@ static PLUGININFOEX pluginInfo = { __COPYRIGHTS,
__FL,
UNICODE_AWARE,
- 0,
//4fac353d-0a36-44a4-9064-6759c53ae782
{0x4fac353d, 0x0a36, 0x44a4, { 0x90, 0x64, 0x67, 0x59, 0xc5, 0x3a, 0xe7, 0x82 }}
};
diff --git a/plugins/BuddyExpectator/BuddyExpectator.cpp b/plugins/BuddyExpectator/BuddyExpectator.cpp index 3e7daed480..ab10cf03cb 100644 --- a/plugins/BuddyExpectator/BuddyExpectator.cpp +++ b/plugins/BuddyExpectator/BuddyExpectator.cpp @@ -70,7 +70,6 @@ PLUGININFOEX pluginInfo = { "© 2005 Anar Ibragimoff, © 2006 Scott Ellis, © 2007-2009 Alexander Turyak",
"http://thief.miranda.im",
UNICODE_AWARE,
- 0,
{0xddf8aec9, 0x7d37, 0x49af, {0x9d, 0x22, 0xbb, 0xbc, 0x92, 0x0e, 0x6f, 0x05}} //{DDF8AEC9-7D37-49AF-9D22-BBBC920E6F05}
};
diff --git a/plugins/CSList/cslist.h b/plugins/CSList/cslist.h index b2cffb6549..5365b75774 100644 --- a/plugins/CSList/cslist.h +++ b/plugins/CSList/cslist.h @@ -636,7 +636,6 @@ PLUGININFOEX pluginInfoEx = __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
PLUGIN_GUUID
};
diff --git a/plugins/ChangeKeyboardLayout/main.cpp b/plugins/ChangeKeyboardLayout/main.cpp index 039554a019..5cda47443b 100644 --- a/plugins/ChangeKeyboardLayout/main.cpp +++ b/plugins/ChangeKeyboardLayout/main.cpp @@ -21,9 +21,9 @@ PLUGININFOEX pluginInfoEx = { "Yasnovidyashii@gmail.com",
"© 2006-2009 Mikhail Yur'ev",
"http://lemnews.com/forum/viewtopic.php?t = 1493",
- 0, //not transient
UNICODE_AWARE, //doesn't replace anything built-in
- {0xc5ef53a8, 0x80d4, 0x4ce9, { 0xb3, 0x41, 0xec, 0x90, 0xd3, 0xec, 0x91, 0x56 }} //{c5ef53a8-80d4-4ce9-b341-ec90d3ec9156}
+ // {c5ef53a8-80d4-4ce9-b341-ec90d3ec9156}
+ {0xc5ef53a8, 0x80d4, 0x4ce9, { 0xb3, 0x41, 0xec, 0x90, 0xd3, 0xec, 0x91, 0x56 }}
};
LPCTSTR ptszKeybEng = _T("`1234567890- = \\qwertyuiop[]asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+|QWERTYUIOP{}ASDFGHJKL:\"ZXCVBNM<>?");
diff --git a/plugins/Chat/main.cpp b/plugins/Chat/main.cpp index 4a2963ee08..ef631c5508 100644 --- a/plugins/Chat/main.cpp +++ b/plugins/Chat/main.cpp @@ -60,7 +60,6 @@ PLUGININFOEX pluginInfo = { "© 2003-2010 Miranda team",
"http://miranda-im.org/",
UNICODE_AWARE,
- 0,
{0x9d6c3213, 0x2b4, 0x4fe1, { 0x92, 0xe6, 0x52, 0x6d, 0xe2, 0x4f, 0x8d, 0x65 }} //{9D6C3213-02B4-4fe1-92E6-526DE24F8D65}
};
diff --git a/plugins/ClientChangeNotify/ClientChangeNotify.cpp b/plugins/ClientChangeNotify/ClientChangeNotify.cpp index e8b3d07819..3318c3ec92 100644 --- a/plugins/ClientChangeNotify/ClientChangeNotify.cpp +++ b/plugins/ClientChangeNotify/ClientChangeNotify.cpp @@ -48,7 +48,6 @@ PLUGININFOEX pluginInfo = { "© 2006-2008 Chervov Dmitry",
"http://deathdemon.int.ru/",
UNICODE_AWARE,
- 0,
// {B68A8906-748B-435d-930E-21CC6E8F3B3F}
{0xb68a8906, 0x748b, 0x435d, {0x93, 0xe, 0x21, 0xcc, 0x6e, 0x8f, 0x3b, 0x3f}}
};
diff --git a/plugins/Clist_classic/init.cpp b/plugins/Clist_classic/init.cpp index 5af2c3b339..3e497d1739 100644 --- a/plugins/Clist_classic/init.cpp +++ b/plugins/Clist_classic/init.cpp @@ -66,8 +66,8 @@ PLUGININFOEX pluginInfo = { "Copyright 2000-2008 Miranda IM project",
"http://www.miranda-im.org",
UNICODE_AWARE,
- DEFMOD_CLISTALL,
- {0x240a91dc, 0x9464, 0x457a, { 0x97, 0x87, 0xff, 0x1e, 0xa8, 0x8e, 0x77, 0xe3 }} //{240A91DC-9464-457a-9787-FF1EA88E77E3}
+ //{240A91DC-9464-457a-9787-FF1EA88E77E3}
+ {0x240a91dc, 0x9464, 0x457a, { 0x97, 0x87, 0xff, 0x1e, 0xa8, 0x8e, 0x77, 0xe3 }}
};
extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion)
diff --git a/plugins/Clist_modern/init.cpp b/plugins/Clist_modern/init.cpp index fc2b6627bf..e803300569 100644 --- a/plugins/Clist_modern/init.cpp +++ b/plugins/Clist_modern/init.cpp @@ -66,8 +66,8 @@ PLUGININFOEX pluginInfo = { "Copyright 2000-2010 Miranda-IM project",
"http://miranda-im.org/development",
UNICODE_AWARE,
- DEFMOD_CLISTALL,
- {0x43909b6, 0xaad8, 0x4d82, { 0x8e, 0xb5, 0x9f, 0x64, 0xcf, 0xe8, 0x67, 0xcd }} //{043909B6-AAD8-4d82-8EB5-9F64CFE867CD}
+ //{043909B6-AAD8-4d82-8EB5-9F64CFE867CD}
+ {0x43909b6, 0xaad8, 0x4d82, { 0x8e, 0xb5, 0x9f, 0x64, 0xcf, 0xe8, 0x67, 0xcd }}
};
static const MUUID interfaces[] = {MIID_CLIST, MIID_LAST};
diff --git a/plugins/Clist_mw/init.cpp b/plugins/Clist_mw/init.cpp index 41197e501e..2bec98ea31 100644 --- a/plugins/Clist_mw/init.cpp +++ b/plugins/Clist_mw/init.cpp @@ -85,8 +85,8 @@ PLUGININFOEX pluginInfo = { "Copyright 2000-2010 Miranda-IM project ["__DATE__" "__TIME__"]",
"http://www.miranda-im.org",
UNICODE_AWARE,
- DEFMOD_CLISTALL,
- {0x2a417ab9, 0x16f2, 0x472d, { 0x9a, 0xe3, 0x41, 0x51, 0x3, 0xc7, 0x8a, 0x64 }} //{2A417AB9-16F2-472d-9AE3-415103C78A64}
+ //{2A417AB9-16F2-472d-9AE3-415103C78A64}
+ {0x2a417ab9, 0x16f2, 0x472d, { 0x9a, 0xe3, 0x41, 0x51, 0x3, 0xc7, 0x8a, 0x64 }}
};
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved)
@@ -112,21 +112,13 @@ int LoadCLCModule(void); int LoadCLUIModule();
int InitSkinHotKeys();
-static int systemModulesLoaded(WPARAM wParam, LPARAM lParam)
+static int OnModulesLoaded(WPARAM wParam, LPARAM lParam)
{
- __try {
- int *disableDefaultModule = 0;
- disableDefaultModule = (int*)CallService(MS_PLUGINS_GETDISABLEDEFAULTARRAY,0,0);
- if (!disableDefaultModule[DEFMOD_UICLUI]) if ( LoadCLUIModule()) return 1;
- }
- __except (exceptFunction(GetExceptionInformation()))
- {
- return 0;
- }
+ if ( LoadCLUIModule())
+ return 1;
InitSkinHotKeys();
RegisterCListFonts();
-
return 0;
}
@@ -216,7 +208,7 @@ LBL_Error: rc = LoadContactListModule();
if (rc == 0) rc = LoadCLCModule();
- HookEvent(ME_SYSTEM_MODULESLOADED, systemModulesLoaded);
+ HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
BGModuleLoad();
OutputDebugStringA("CListInitialise ClistMW...Done\r\n");
diff --git a/plugins/Clist_nicer/SRC/init.cpp b/plugins/Clist_nicer/SRC/init.cpp index cef1931bc4..0454d0d36a 100644 --- a/plugins/Clist_nicer/SRC/init.cpp +++ b/plugins/Clist_nicer/SRC/init.cpp @@ -111,8 +111,8 @@ PLUGININFOEX pluginInfo = "Copyright 2000-2010 Miranda-IM project",
"http://www.miranda-im.org",
UNICODE_AWARE,
- DEFMOD_CLISTALL,
- {0x8f79b4ee, 0xeb48, 0x4a03, { 0x87, 0x3e, 0x27, 0xbe, 0x6b, 0x7e, 0x9a, 0x25 }} //{8F79B4EE-EB48-4a03-873E-27BE6B7E9A25}
+ // {8F79B4EE-EB48-4a03-873E-27BE6B7E9A25}
+ {0x8f79b4ee, 0xeb48, 0x4a03, { 0x87, 0x3e, 0x27, 0xbe, 0x6b, 0x7e, 0x9a, 0x25 }}
};
diff --git a/plugins/Clist_nicer/skineditor/main.cpp b/plugins/Clist_nicer/skineditor/main.cpp index f01fa15cd0..de1996f2f5 100644 --- a/plugins/Clist_nicer/skineditor/main.cpp +++ b/plugins/Clist_nicer/skineditor/main.cpp @@ -36,7 +36,6 @@ PLUGININFOEX pluginInfo = { "Copyright 2000-2006 Miranda-IM project",
"http://www.miranda-im.org",
UNICODE_AWARE,
- 0,
{0x21948c89, 0xb549, 0x4c9d, { 0x8b, 0x4f, 0x3f, 0x37, 0x26, 0xec, 0x6b, 0x4b }}
};
diff --git a/plugins/Console/init.cpp b/plugins/Console/init.cpp index 4742253c44..58943d2c6a 100644 --- a/plugins/Console/init.cpp +++ b/plugins/Console/init.cpp @@ -37,7 +37,6 @@ PLUGININFOEX pluginInfoEx={ __PLUGIN_RIGHTS,
__PLUGIN_URL,
UNICODE_AWARE,
- 0,
MIID_CONSOLE
};
diff --git a/plugins/ContactsPlus/main.cpp b/plugins/ContactsPlus/main.cpp index 172d17be53..fff3770566 100644 --- a/plugins/ContactsPlus/main.cpp +++ b/plugins/ContactsPlus/main.cpp @@ -59,8 +59,7 @@ PLUGININFOEX pluginInfo = { "jokusoftware@miranda-im.org",
"(C) 2004-2008 Joe Kucera, Original Code (C) 2002 Dominus Procellarum",
"http://addons.miranda-im.org/details.php?action=viewfile&id=1253",
- UNICODE_AWARE, //no flags by default
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE,
{0x0324785E, 0x74CE, 0x4600, {0xB7, 0x81, 0x85, 0x17, 0x73, 0xB3, 0xEF, 0xC5 } } // {0324785E-74CE-4600-B781-851773B3EFC5}
};
diff --git a/plugins/CountryFlags/main.cpp b/plugins/CountryFlags/main.cpp index ac35c5ef57..1f3e80ba04 100644 --- a/plugins/CountryFlags/main.cpp +++ b/plugins/CountryFlags/main.cpp @@ -35,7 +35,6 @@ static PLUGININFOEX pluginInfo={ "© 2006-2007 H. Herkenrath",
PLUGIN_WEBSITE,
UNICODE_AWARE,
- 0,
// {68C36842-3D95-4f4a-AB81-014D6593863B}
{0x68c36842,0x3d95,0x4f4a,{0xab,0x81,0x1,0x4d,0x65,0x93,0x86,0x3b}}
};
diff --git a/plugins/CryptoPP/base16.cpp b/plugins/CryptoPP/base16.cpp index 110eea0a9c..ace113ff76 100644 --- a/plugins/CryptoPP/base16.cpp +++ b/plugins/CryptoPP/base16.cpp @@ -18,7 +18,7 @@ char *base16encode(const char *inBuffer, int count) { }
-char *base16decode(const char *inBuffer, int *count) {
+char *base16decode(const char *inBuffer, size_t *count) {
char *outBuffer = (char *) malloc(*count);
BYTE *outBufferPtr = (BYTE *) outBuffer;
@@ -54,9 +54,9 @@ char *base16decode(const char *inBuffer, int *count) { }
-char *base16decode(const char *inBuffer) {
-
- int count = (int)strlen(inBuffer);
+char *base16decode(const char *inBuffer)
+{
+ size_t count = strlen(inBuffer);
return base16decode(inBuffer, &count);
}
diff --git a/plugins/CryptoPP/base16.h b/plugins/CryptoPP/base16.h index f5f368ebaa..2a2c18c42a 100644 --- a/plugins/CryptoPP/base16.h +++ b/plugins/CryptoPP/base16.h @@ -44,7 +44,7 @@ static const byte asciiToBin16[] = static const byte binToAscii16[] = "0123456789ABCDEF";
char *base16encode(const char *, const int);
-char *base16decode(const char *, int *);
+char *base16decode(const char *, size_t *);
char *base16decode(const char *);
#define encode16(data) binToAscii16[data]
diff --git a/plugins/CryptoPP/base64.cpp b/plugins/CryptoPP/base64.cpp index 1a752bc507..7495dd234f 100644 --- a/plugins/CryptoPP/base64.cpp +++ b/plugins/CryptoPP/base64.cpp @@ -1,7 +1,8 @@ #include "commonheaders.h"
-string base64encode(const string buf) {
+string base64encode(const string buf)
+{
string out;
char *base64 = base64encode(buf.data(), buf.length());
out.assign(base64);
@@ -42,7 +43,7 @@ char *base64encode(const char *inBuffer, const int count) { string base64decode(const string buf) {
string out;
- int len = buf.length();
+ size_t len = buf.length();
char *plain = base64decode(buf.data(), &len);
out.assign(plain,len);
free(plain);
@@ -52,7 +53,7 @@ string base64decode(const string buf) { string base64decode(const char *buf) {
string out;
- int len = strlen(buf);
+ size_t len = strlen(buf);
char *plain = base64decode(buf, &len);
out.assign(plain,len);
free(plain);
@@ -60,14 +61,14 @@ string base64decode(const char *buf) { }
-char *base64decode(const char *inBuffer, int *count) {
+char *base64decode(const char *inBuffer, size_t *count) {
int srcIndex = 0, destIndex = 0;
char *outBuffer = (char *) malloc(*count);
while(srcIndex < *count) {
BYTE c0, c1, c2 = 0, c3 = 0;
- const int delta = *count - srcIndex;
+ const size_t delta = *count - srcIndex;
c0 = decode64(inBuffer[srcIndex++]);
c1 = decode64(inBuffer[srcIndex++]);
if (delta > 2) {
diff --git a/plugins/CryptoPP/base64.h b/plugins/CryptoPP/base64.h index b0756276a3..1024ecbbd7 100644 --- a/plugins/CryptoPP/base64.h +++ b/plugins/CryptoPP/base64.h @@ -45,7 +45,7 @@ static const byte asciiToBin64[] = static const byte binToAscii64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
char *base64encode(const char *, const int);
-char *base64decode(const char *, int *);
+char *base64decode(const char *, size_t *);
string base64encode(const string);
string base64decode(const string);
diff --git a/plugins/CryptoPP/commonheaders.cpp b/plugins/CryptoPP/commonheaders.cpp index 426b7ada54..395da89d5f 100644 --- a/plugins/CryptoPP/commonheaders.cpp +++ b/plugins/CryptoPP/commonheaders.cpp @@ -24,7 +24,7 @@ PLUGININFOEX pluginInfoEx = { "baloo@bk.ru",
"© 2006-09 Baloo",
"http://miranda-im.org/download/details.php?action=viewfile&id=2669",
- 0, 0,
+ 0,
MIID_CRYPTOPP
};
@@ -58,8 +58,8 @@ void ExtractFile( char *FileName, int ResType, int ResId ) }
-int rtrim(LPCSTR str) {
- int len = strlen(str);
+size_t rtrim(LPCSTR str) {
+ size_t len = strlen(str);
LPSTR ptr = (LPSTR)str+len-1;
while( len ) {
diff --git a/plugins/CryptoPP/commonheaders.h b/plugins/CryptoPP/commonheaders.h index 5e2215ea3c..fee4216694 100644 --- a/plugins/CryptoPP/commonheaders.h +++ b/plugins/CryptoPP/commonheaders.h @@ -89,7 +89,7 @@ extern CRITICAL_SECTION localQueueMutex; extern CRITICAL_SECTION localContextMutex;
void ExtractFile(char*,int,int);
-int rtrim(LPCSTR);
+size_t rtrim(LPCSTR);
#if defined(_DEBUG) || defined(NETLIB_LOG)
extern HANDLE hNetlibUser;
diff --git a/plugins/CryptoPP/cpp_gpgw.cpp b/plugins/CryptoPP/cpp_gpgw.cpp index 5107b27ac7..0ef3d77626 100644 --- a/plugins/CryptoPP/cpp_gpgw.cpp +++ b/plugins/CryptoPP/cpp_gpgw.cpp @@ -240,7 +240,7 @@ LPSTR __cdecl gpg_encode(HANDLE context, LPCSTR szPlainMsg) LPSTR szUtfMsg;
if ( ptr->mode & MODE_GPG_ANSI ) {
LPWSTR wszMsg = utf8decode(szPlainMsg);
- int wlen = wcslen(wszMsg)+1;
+ size_t wlen = wcslen(wszMsg)+1;
szUtfMsg = (LPSTR) alloca(wlen);
WideCharToMultiByte(CP_ACP, 0, wszMsg, -1, szUtfMsg, wlen, 0, 0);
}
@@ -261,7 +261,7 @@ LPSTR __cdecl gpg_decode(HANDLE context, LPCSTR szEncMsg) if (szOldMsg) {
if ( !is_7bit_string(szOldMsg) && !is_utf8_string(szOldMsg) ) {
- int slen = strlen(szOldMsg)+1;
+ size_t slen = strlen(szOldMsg)+1;
LPWSTR wszMsg = (LPWSTR) alloca(slen*sizeof(WCHAR));
MultiByteToWideChar(CP_ACP, 0, szOldMsg, -1, wszMsg, slen*sizeof(WCHAR));
szNewMsg = _strdup(utf8encode(wszMsg));
diff --git a/plugins/CryptoPP/cpp_gzip.cpp b/plugins/CryptoPP/cpp_gzip.cpp index c819779677..36a4ae7e20 100644 --- a/plugins/CryptoPP/cpp_gzip.cpp +++ b/plugins/CryptoPP/cpp_gzip.cpp @@ -1,7 +1,7 @@ #include "commonheaders.h"
// gzip data
-BYTE *cpp_gzip(BYTE *pData, int nLen, int& nCompressedLen) {
+BYTE *cpp_gzip(BYTE *pData, size_t nLen, size_t& nCompressedLen) {
string zipped;
Gzip gzip(new StringSink(zipped),5); // 1 is fast, 9 is slow
@@ -16,7 +16,7 @@ BYTE *cpp_gzip(BYTE *pData, int nLen, int& nCompressedLen) { }
// gunzip data
-BYTE *cpp_gunzip(BYTE *pCompressedData, int nCompressedLen, int& nLen) {
+BYTE *cpp_gunzip(BYTE *pCompressedData, size_t nCompressedLen, size_t& nLen) {
string unzipped;
Gunzip gunzip(new StringSink(unzipped));
diff --git a/plugins/CryptoPP/cpp_keys.cpp b/plugins/CryptoPP/cpp_keys.cpp index b21da13ada..b216eb6a2f 100644 --- a/plugins/CryptoPP/cpp_keys.cpp +++ b/plugins/CryptoPP/cpp_keys.cpp @@ -73,7 +73,7 @@ int __cdecl cpp_init_keyb(HANDLE context, LPCSTR key) { pCNTX ptr = get_context_on_id(context); if (!ptr) return 0;
pSIMDATA p = (pSIMDATA) cpp_alloc_pdata(ptr);
- int clen = rtrim(key);
+ size_t clen = rtrim(key);
ptr->features = 0;
LPSTR pub_binary;
diff --git a/plugins/CryptoPP/cpp_pgpw.cpp b/plugins/CryptoPP/cpp_pgpw.cpp index a42e84c366..8633690009 100644 --- a/plugins/CryptoPP/cpp_pgpw.cpp +++ b/plugins/CryptoPP/cpp_pgpw.cpp @@ -258,7 +258,7 @@ LPSTR __cdecl pgp_decode(HANDLE context, LPCSTR szEncMsg) if (szOldMsg) {
if ( !is_7bit_string(szOldMsg) && !is_utf8_string(szOldMsg) ) {
- int slen = strlen(szOldMsg)+1;
+ size_t slen = strlen(szOldMsg)+1;
LPWSTR wszMsg = (LPWSTR) alloca(slen*sizeof(WCHAR));
MultiByteToWideChar(CP_ACP, 0, szOldMsg, -1, wszMsg, slen*sizeof(WCHAR));
szNewMsg = _strdup(utf8encode(wszMsg));
diff --git a/plugins/CryptoPP/cpp_rsau.h b/plugins/CryptoPP/cpp_rsau.h index 0e30629079..bc45a248c5 100644 --- a/plugins/CryptoPP/cpp_rsau.h +++ b/plugins/CryptoPP/cpp_rsau.h @@ -30,7 +30,7 @@ public: }
};
- u_int count() { return data.size(); };
+ size_t count() { return data.size(); };
bool exist(u_char t) { return (data.find(t) != data.end()); };
string get(u_char t) { return data[t]; };
void put(u_char t, string& v) { data[t]=v; };
diff --git a/plugins/CryptoPP/cpp_svcs.cpp b/plugins/CryptoPP/cpp_svcs.cpp index 2b99003a2a..e2a1dd9053 100644 --- a/plugins/CryptoPP/cpp_svcs.cpp +++ b/plugins/CryptoPP/cpp_svcs.cpp @@ -10,8 +10,7 @@ LPSTR __cdecl cpp_encrypt(pCNTX ptr, LPCSTR szPlainMsg) pSIMDATA p = (pSIMDATA) ptr->pdata;
BYTE dataflag = 0;
- int clen,slen;
- slen = strlen(szPlainMsg);
+ size_t clen, slen = strlen(szPlainMsg);
LPSTR szMsg;
if (ptr->features & FEATURES_GZIP) {
@@ -69,7 +68,7 @@ LPSTR __cdecl cpp_decrypt(pCNTX ptr, LPCSTR szEncMsg) ptr->error = ERROR_SEH;
pSIMDATA p = (pSIMDATA) ptr->pdata;
- int clen = strlen(szEncMsg);
+ size_t clen = strlen(szEncMsg);
if (ptr->features & FEATURES_BASE64)
ciphered = base64decode(szEncMsg,&clen);
diff --git a/plugins/CryptoPP/cryptopp.h b/plugins/CryptoPP/cryptopp.h index 8648d7ba31..b2d3867f2c 100644 --- a/plugins/CryptoPP/cryptopp.h +++ b/plugins/CryptoPP/cryptopp.h @@ -168,8 +168,8 @@ extern HINSTANCE g_hInst; pCNTX get_context_on_id(int);
pCNTX get_context_on_id(HANDLE);
void cpp_free_keys(pCNTX);
-BYTE *cpp_gzip(BYTE*,int,int&);
-BYTE *cpp_gunzip(BYTE*,int,int&);
+BYTE *cpp_gzip(BYTE*,size_t,size_t&);
+BYTE *cpp_gunzip(BYTE*,size_t,size_t&);
string cpp_zlibc(string&);
string cpp_zlibd(string&);
diff --git a/plugins/CyrTranslit/main.cpp b/plugins/CyrTranslit/main.cpp index 6d9249733b..49761dc305 100644 --- a/plugins/CyrTranslit/main.cpp +++ b/plugins/CyrTranslit/main.cpp @@ -33,8 +33,7 @@ PLUGININFOEX pluginInfoEx={ PLG_COPYRIGHT,
PLG_HOMEPAGE,
PLG_FLAGS,
- PLG_REPLACESDEFMODULE,
- MIID_V_CYRTRANSLIT,
+ MIID_V_CYRTRANSLIT
};
//------------------------------------------------------------------------------
diff --git a/plugins/CyrTranslit/plugin.h b/plugins/CyrTranslit/plugin.h index 48310a1a3a..866ec60bb8 100644 --- a/plugins/CyrTranslit/plugin.h +++ b/plugins/CyrTranslit/plugin.h @@ -57,7 +57,6 @@ #define PLG_COPYRIGHT "© 2005-2009 ValeraVi, Ivan Krechetov"
#define PLG_HOMEPAGE "http://www.vi-soft.com.ua"
#define PLG_FLAGS 0 /*UNICODE_AWARE, will be set dynamically*/
-#define PLG_REPLACESDEFMODULE 0 /*doesn't replace anything built-in*/
#define MIID_V_CYRTRANSLIT {0xbcec0bd7, 0xca59, 0x44b2, {0x9a, 0x14, 0x3a, 0x14, 0x98, 0x0f, 0x52, 0x4a}}
diff --git a/plugins/Db3x/init.cpp b/plugins/Db3x/init.cpp index dfbb290b98..63f752beb6 100644 --- a/plugins/Db3x/init.cpp +++ b/plugins/Db3x/init.cpp @@ -37,7 +37,6 @@ static PLUGININFOEX pluginInfo = { "Copyright 2000-2011 Miranda IM project",
"",
UNICODE_AWARE,
- DEFMOD_DB,
{0x1394a3ab, 0x2585, 0x4196, { 0x8f, 0x72, 0xe, 0xae, 0xc2, 0x45, 0xe, 0x11 }} //{1394A3AB-2585-4196-8F72-0EAEC2450E11}
};
diff --git a/plugins/Db3x_mmap/init.cpp b/plugins/Db3x_mmap/init.cpp index 50beb170e3..dd9e9a36db 100644 --- a/plugins/Db3x_mmap/init.cpp +++ b/plugins/Db3x_mmap/init.cpp @@ -37,7 +37,6 @@ static PLUGININFOEX pluginInfo = { "Copyright 2000-2011 Miranda IM project",
"",
UNICODE_AWARE,
- DEFMOD_DB,
{0xf7a6b27c, 0x9d9c, 0x4a42, { 0xbe, 0x86, 0xa4, 0x48, 0xae, 0x10, 0x91, 0x61 }} //{F7A6B27C-9D9C-4a42-BE86-A448AE109161}
};
diff --git a/plugins/Db_autobackups/main.cpp b/plugins/Db_autobackups/main.cpp index 7107b167b9..c52b3ad199 100644 --- a/plugins/Db_autobackups/main.cpp +++ b/plugins/Db_autobackups/main.cpp @@ -20,8 +20,7 @@ PLUGININFOEX pluginInfo={ "chaos.persei@gmail.com",
__COPYRIGHTS,
"http://mods.mirandaim.ru/",
- UNICODE_AWARE,
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
// Generate your own unique id for your plugin.
// Do not use this UUID!
// Use uuidgen.exe to generate the uuuid
diff --git a/plugins/Dbx_mmap_SA/Import_SA/main.cpp b/plugins/Dbx_mmap_SA/Import_SA/main.cpp index c86d29f6c6..2d0a4f5e26 100644 --- a/plugins/Dbx_mmap_SA/Import_SA/main.cpp +++ b/plugins/Dbx_mmap_SA/Import_SA/main.cpp @@ -56,8 +56,7 @@ PLUGININFOEX pluginInfo = { __AUTHOREMAIL,
__COPYRIGHT,
__AUTHORWEB,
- UNICODE_AWARE,
- 0, //{2D77A746-00A6-4343-BFC5-F808CDD772EA}
+ UNICODE_AWARE, //{2D77A746-00A6-4343-BFC5-F808CDD772EA}
{0x2d77a746, 0xa6, 0x4343, { 0xbf, 0xc5, 0xf8, 0x8, 0xcd, 0xd7, 0x72, 0xea }}
};
diff --git a/plugins/Dbx_mmap_SA/init.cpp b/plugins/Dbx_mmap_SA/init.cpp index 2517b3efab..30c1254c16 100644 --- a/plugins/Dbx_mmap_SA/init.cpp +++ b/plugins/Dbx_mmap_SA/init.cpp @@ -40,8 +40,7 @@ PLUGININFOEX pluginInfo = { "Copyright 2000-2011 Miranda IM project, FYR, chaos.persei, induction, nullbie",
"http://dbmmapmod.googlecode.com/",
UNICODE_AWARE,
- DEFMOD_DB,
- // {28FF9B91-3E4D-4f1c-B47C-C641B037FF40}
+ // {28FF9B91-3E4D-4f1c-B47C-C641B037FF40}
{ 0x28ff9b91, 0x3e4d, 0x4f1c, { 0xb4, 0x7c, 0xc6, 0x41, 0xb0, 0x37, 0xff, 0x40 } }
};
diff --git a/plugins/Dbx_tree/init.cpp b/plugins/Dbx_tree/init.cpp index 6844fa83c8..fc3c088146 100644 --- a/plugins/Dbx_tree/init.cpp +++ b/plugins/Dbx_tree/init.cpp @@ -42,8 +42,7 @@ static PLUGININFOEX gPluginInfoEx = { gCopyright,
"http://www-user.tu-chemnitz.de/~kunmi/?dbx_tree&lang=en",
UNICODE_AWARE,
- DEFMOD_DB,
- gGUID
+ gGUID
};
extern "C" __declspec(dllexport) DATABASELINK* DatabasePluginInfo(void * Reserved)
diff --git a/plugins/ExtraIcons/extraicons.cpp b/plugins/ExtraIcons/extraicons.cpp index dccfa023dc..8142e5f35b 100644 --- a/plugins/ExtraIcons/extraicons.cpp +++ b/plugins/ExtraIcons/extraicons.cpp @@ -30,8 +30,7 @@ PLUGININFOEX pluginInfo = { __AUTHOREMAIL,
__COPYRIGHT,
__AUTHORWEB,
- UNICODE_AWARE,
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
{ 0x112f7d30, 0xcd19, 0x4c74, { 0xa0, 0x3b, 0xbf, 0xbb, 0x76, 0xb7, 0x5b, 0xc4 } } // {112F7D30-CD19-4c74-A03BBFBB76B75BC4}
};
diff --git a/plugins/FTPFileYM/ftpfile.cpp b/plugins/FTPFileYM/ftpfile.cpp index 0bcac128cb..18ef6e7acf 100644 --- a/plugins/FTPFileYM/ftpfile.cpp +++ b/plugins/FTPFileYM/ftpfile.cpp @@ -64,8 +64,7 @@ static PLUGININFOEX pluginInfoEx = "yaho@miranda-easy.net",
"Copyright © 2007-2010 Jan Holub",
"http://miranda-easy.net/mods.php",
- UNICODE_AWARE,
- 0,
+ UNICODE_AWARE,
MIID_FTPFILE
};
diff --git a/plugins/FavContacts/src/main.cpp b/plugins/FavContacts/src/main.cpp index bd53299f63..d1bfd4ee2a 100644 --- a/plugins/FavContacts/src/main.cpp +++ b/plugins/FavContacts/src/main.cpp @@ -37,8 +37,7 @@ PLUGININFOEX pluginInfo = { "nullbie@gmail.com",
"Copyright 2007-2009 Victor Pavlychko",
"http://nullbie.miranda.im/",
- UNICODE_AWARE,
- 0, // replace internal version (if any)
+ UNICODE_AWARE, // replace internal version (if any)
// {CE2C0401-F9E0-40d7-8E95-1A4197D7AB04}
{ 0xce2c0401, 0xf9e0, 0x40d7, { 0x8e, 0x95, 0x1a, 0x41, 0x97, 0xd7, 0xab, 0x4 } }
};
diff --git a/plugins/FileAsMessage/main.cpp b/plugins/FileAsMessage/main.cpp index b797c53b9b..61dfdb512b 100644 --- a/plugins/FileAsMessage/main.cpp +++ b/plugins/FileAsMessage/main.cpp @@ -11,7 +11,6 @@ PLUGININFOEX pluginInfo = "Copyright (c) 2004, Denis Stanishevskiy",
PLUGIN_URL,
UNICODE_AWARE,
- 0,
// {34B5A402-1B79-4246-B041-43D0B590AE2C}
{ 0x34b5a402, 0x1b79, 0x4246, { 0xb0, 0x41, 0x43, 0xd0, 0xb5, 0x90, 0xae, 0x2c } }
};
diff --git a/plugins/FingerPrintModPlus/src/fingerprint.cpp b/plugins/FingerPrintModPlus/src/fingerprint.cpp index 7c447cedfe..3c6c035b07 100644 --- a/plugins/FingerPrintModPlus/src/fingerprint.cpp +++ b/plugins/FingerPrintModPlus/src/fingerprint.cpp @@ -114,7 +114,6 @@ PLUGININFOEX pluginInfoEx = { __LEGAL_COPYRIGHT_STRING,
"http://code.google.com/p/fingerprintmod/",
UNICODE_AWARE,
- 0,
MIID_THIS_PLUGIN
};
diff --git a/plugins/FirstRun/main.cpp b/plugins/FirstRun/main.cpp index d11d1da31f..cbe3b18f9d 100644 --- a/plugins/FirstRun/main.cpp +++ b/plugins/FirstRun/main.cpp @@ -14,12 +14,8 @@ PLUGININFOEX pluginInfo={ "yasnovidyashii@gmail.com",
"© 2008 Mikhail Yuriev",
"http://miranda-im.org/",
- UNICODE_AWARE, //not transient
- 0, //doesn't replace anything built-in
- // Generate your own unique id for your plugin.
- // Do not use this UUID!
- // Use uuidgen.exe to generate the uuuid
- MIID_FIRSTRUN
+ UNICODE_AWARE,
+ MIID_FIRSTRUN
};
int ModulesLoaded(WPARAM wParam,LPARAM lParam)
diff --git a/plugins/FlashAvatars/cflash.cpp b/plugins/FlashAvatars/cflash.cpp index d334dee339..a645972e08 100644 --- a/plugins/FlashAvatars/cflash.cpp +++ b/plugins/FlashAvatars/cflash.cpp @@ -43,7 +43,6 @@ PLUGININFOEX pluginInfo = { "Copyright 2000-2009 Miranda-IM project",
"http://www.miranda-im.org",
UNICODE_AWARE,
- 0,
// {72765A6F-B017-42f1-B30F-5E0941273A3F}
{ 0x72765a6f, 0xb017, 0x42f1, { 0xb3, 0xf, 0x5e, 0x9, 0x41, 0x27, 0x3a, 0x3f } }
};
diff --git a/plugins/FloatingContacts/main.cpp b/plugins/FloatingContacts/main.cpp index 3ba51d5111..f51e1f6d34 100644 --- a/plugins/FloatingContacts/main.cpp +++ b/plugins/FloatingContacts/main.cpp @@ -156,7 +156,6 @@ PLUGININFOEX pluginInfoEx = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
MIID_FLTCONT
};
diff --git a/plugins/Folders/folders.cpp b/plugins/Folders/folders.cpp index 419e5f8a10..867f3e8713 100644 --- a/plugins/Folders/folders.cpp +++ b/plugins/Folders/folders.cpp @@ -45,7 +45,6 @@ PLUGININFOEX pluginInfo = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
{0x2f129563, 0x2c7d, 0x4a9a, {0xb9, 0x48, 0x97, 0xdf, 0xcc, 0x0a, 0xfd, 0xd7}} //{2f129563-2c7d-4a9a-b948-97dfcc0afdd7}
}; //not used
diff --git a/plugins/FreeImage/Miranda/main.cpp b/plugins/FreeImage/Miranda/main.cpp index 74bfd38a7b..70f60c02cc 100644 --- a/plugins/FreeImage/Miranda/main.cpp +++ b/plugins/FreeImage/Miranda/main.cpp @@ -55,7 +55,6 @@ static const PLUGININFOEX pluginInfoEx = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
// {7C070F7C-459E-46b7-8E6D-BC6EFAA22F78}
{ 0x7c070f7c, 0x459e, 0x46b7, { 0x8e, 0x6d, 0xbc, 0x6e, 0xfa, 0xa2, 0x2f, 0x78 } }
};
diff --git a/plugins/Gender/main.cpp b/plugins/Gender/main.cpp index 04069c9525..4b992cf007 100644 --- a/plugins/Gender/main.cpp +++ b/plugins/Gender/main.cpp @@ -57,8 +57,7 @@ sizeof(PLUGININFOEX), "thief@miranda.im",
"2006-2011 Alexander Turyak",
"http://thief.miranda.im/",
- UNICODE_AWARE,
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
{0xfb1c17e0, 0x77fc, 0x45a7, {0x9c, 0x8b, 0xe2, 0xbe, 0xf4, 0xf5, 0x6b, 0x28}} /* FB1C17E0-77FC-45A7-9C8B-E2BEF4F56B28 */
};
diff --git a/plugins/HistoryLinkListPlus/linklist.cpp b/plugins/HistoryLinkListPlus/linklist.cpp index 5d216ff7ce..6de2a4a1e9 100644 --- a/plugins/HistoryLinkListPlus/linklist.cpp +++ b/plugins/HistoryLinkListPlus/linklist.cpp @@ -34,9 +34,9 @@ PLUGININFOEX pluginInfo = { "gureedo@gmail.com",
"© 2010-2011 gureedo",
"http://www.miranda-im.org",
- UNICODE_AWARE, //not transient
- 0, //doesn't replace anything built-in
- { 0xDA0B09F5, 0x9C66, 0x488C, { 0xAE, 0x37, 0x8A, 0x5F, 0x19, 0x1C, 0x90, 0x79 } } // {DA0B09F5-9C66-488C-AE37-8A5F191C9079}
+ UNICODE_AWARE,
+ // {DA0B09F5-9C66-488C-AE37-8A5F191C9079}
+ { 0xDA0B09F5, 0x9C66, 0x488C, { 0xAE, 0x37, 0x8A, 0x5F, 0x19, 0x1C, 0x90, 0x79 } }
};
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
diff --git a/plugins/HistorySweeperLight/main.cpp b/plugins/HistorySweeperLight/main.cpp index f4c21b8b79..c6f8b427ac 100644 --- a/plugins/HistorySweeperLight/main.cpp +++ b/plugins/HistorySweeperLight/main.cpp @@ -39,7 +39,6 @@ static PLUGININFOEX pluginInfoEx = "© 2002-2003 Sergey V. Gershovich a.k.a. Jazzy$, 2006-2009 Boris Krasnovskiy, 2010, 2011 tico-tico",
"",
UNICODE_AWARE,
- 0,
MIID_HISTORYSWEEPERLIGHT
};
diff --git a/plugins/IEView/ieview_main.cpp b/plugins/IEView/ieview_main.cpp index 59b66d6cb5..1325e269b5 100644 --- a/plugins/IEView/ieview_main.cpp +++ b/plugins/IEView/ieview_main.cpp @@ -43,7 +43,6 @@ PLUGININFOEX pluginInfoEx = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
{0x0495171b, 0x7137, 0x4ded, {0x97, 0xf8, 0xce, 0x6f, 0xed, 0x67, 0xd6, 0x91}}
};
diff --git a/plugins/IgnoreState/main.cpp b/plugins/IgnoreState/main.cpp index 69840f4e3b..7f2407a84c 100644 --- a/plugins/IgnoreState/main.cpp +++ b/plugins/IgnoreState/main.cpp @@ -54,7 +54,6 @@ PLUGININFOEX pluginInfo={ __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
{0xa6872bcd, 0xf2a1, 0x41b8, {0xb2, 0xf1, 0xdd, 0x7c, 0xec, 0x05, 0x57, 0x34}}
// a6872bcd-f2a1-41b8-b2f1-dd7cec055734
};
diff --git a/plugins/Import/main.cpp b/plugins/Import/main.cpp index 4818007477..65d139e5c5 100644 --- a/plugins/Import/main.cpp +++ b/plugins/Import/main.cpp @@ -59,8 +59,7 @@ PLUGININFOEX pluginInfo = { "info@miranda-im.org",
"© 2000-2010 Martin Öberg, Richard Hughes, Dmitry Kuzkin, George Hazan",
"http://www.miranda-im.org",
- UNICODE_AWARE,
- 0, //{2D77A746-00A6-4343-BFC5-F808CDD772EA}
+ UNICODE_AWARE, //{2D77A746-00A6-4343-BFC5-F808CDD772EA}
{0x2d77a746, 0xa6, 0x4343, { 0xbf, 0xc5, 0xf8, 0x8, 0xcd, 0xd7, 0x72, 0xea }}
};
diff --git a/plugins/KeyboardNotify/main.cpp b/plugins/KeyboardNotify/main.cpp index 6535acdfd8..e71fe8feab 100644 --- a/plugins/KeyboardNotify/main.cpp +++ b/plugins/KeyboardNotify/main.cpp @@ -315,8 +315,7 @@ PLUGININFOEX pluginInfo={ "tioduke@yahoo.ca",
"© 2002-2003 M.Öberg, 2004 Std, 2005-2008 TioDuke",
"http://addons.miranda-im.org/",
- UNICODE_AWARE,
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
MIID_KBDNOTIFY //{119D7288-2050-448d-9900-D86AC70426BF}
};
diff --git a/plugins/LangMan/main.cpp b/plugins/LangMan/main.cpp index dad4afeac0..ea7f4f7354 100644 --- a/plugins/LangMan/main.cpp +++ b/plugins/LangMan/main.cpp @@ -37,7 +37,6 @@ static PLUGININFOEX pluginInfo = { "© 2005-2007 H. Herkenrath",
PLUGIN_WEBSITE,
UNICODE_AWARE,
- 0,
// {D4BDD1EB-56F1-4a87-A187-67246EE919A2}
{0xd4bdd1eb, 0x56f1, 0x4a87, {0xa1, 0x87, 0x67, 0x24, 0x6e, 0xe9, 0x19, 0xa2}},
};
diff --git a/plugins/ListeningTo/listeningto.cpp b/plugins/ListeningTo/listeningto.cpp index 2ce9c8ecc5..a1359bea59 100644 --- a/plugins/ListeningTo/listeningto.cpp +++ b/plugins/ListeningTo/listeningto.cpp @@ -45,8 +45,7 @@ PLUGININFOEX pluginInfo={ "",
"© 2006-2009 Ricardo Pescuma Domenecci",
"http://pescuma.org/miranda/listeningto",
- UNICODE_AWARE,
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
{ 0xf981f3f5, 0x35a, 0x444f, { 0x98, 0x92, 0xca, 0x72, 0x2c, 0x19, 0x5a, 0xda } } // {F981F3F5-035A-444f-9892-CA722C195ADA}
};
diff --git a/plugins/MenuItemEx/main.cpp b/plugins/MenuItemEx/main.cpp index 0f3e2d4e27..78d1c6c0b9 100644 --- a/plugins/MenuItemEx/main.cpp +++ b/plugins/MenuItemEx/main.cpp @@ -97,16 +97,15 @@ static const ii[] = { PLUGININFOEX pluginInfoEx = {
sizeof(PLUGININFOEX),
- MODULENAME,
- __VERSION_DWORD,
- __DESC,
- __AUTHORS,
- __EMAIL,
- __COPYRIGHTS,
- __WEB __PLUGIN_ID_STR,
- UNICODE_AWARE,
- 0,
- MIID_MENUEX
+ MODULENAME,
+ __VERSION_DWORD,
+ __DESC,
+ __AUTHORS,
+ __EMAIL,
+ __COPYRIGHTS,
+ __WEB __PLUGIN_ID_STR,
+ UNICODE_AWARE,
+ MIID_MENUEX
};
struct ModSetLinkLinkItem { // code from dbe++ plugin by Bio
diff --git a/plugins/MetaContacts/meta_main.cpp b/plugins/MetaContacts/meta_main.cpp index 4c7abebee2..1605ec6129 100644 --- a/plugins/MetaContacts/meta_main.cpp +++ b/plugins/MetaContacts/meta_main.cpp @@ -101,7 +101,6 @@ PLUGININFOEX pluginInfo={ __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
{ 0x4c4a27cf, 0x5e64, 0x4242, { 0xa3, 0x32, 0xb9, 0x8b, 0x8, 0x24, 0x3e, 0x89 } } // {4C4A27CF-5E64-4242-A332-B98B08243E89}
};
diff --git a/plugins/MirOTR/MirOTR/dllmain.cpp b/plugins/MirOTR/MirOTR/dllmain.cpp index 0e7e818194..1428f248c7 100644 --- a/plugins/MirOTR/MirOTR/dllmain.cpp +++ b/plugins/MirOTR/MirOTR/dllmain.cpp @@ -21,8 +21,7 @@ PLUGININFOEX pluginInfo={ AUTHOR_MAIL,
LEGAL_COPYRIGHT_LONG,
HOMEPAGE,
- UNICODE_AWARE, // not transient
- 0, // doesn't replace anything built-in
+ UNICODE_AWARE,
MIID_OTRPLUGIN // ANSI and Unicode have different IDs
};
@@ -50,7 +49,7 @@ DLLFUNC PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) int ModulesLoaded(WPARAM wParam, LPARAM lParam) {
if(ServiceExists(MS_MC_GETPROTOCOLNAME))
g_metaproto = (char *)CallService(MS_MC_GETPROTOCOLNAME, 0, 0);
-
+
// DISABLED UPDATE CHECK FOR NOW
/*
if(ServiceExists(MS_UPDATE_REGISTER)) {
@@ -66,15 +65,15 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { update.szBetaChangelogURL = "http://code.google.com/p/mirotr/source/list";
update.szUpdateURL = UPDATER_AUTOREGISTER;
-
- // these are the three lines that matter - the archive, the page containing the version string, and the text (or data)
+
+ // these are the three lines that matter - the archive, the page containing the version string, and the text (or data)
// before the version that we use to locate it on the page
// (note that if the update URL and the version URL point to standard file listing entries, the backend xml
// data will be used to check for updates rather than the actual web page - this is not true for beta urls)
update.szBetaUpdateURL = "http://www.progandy.co.cc/mirotr/download.php"; // redirection script to current release on GoogleCode
update.szBetaVersionURL = "http://www.progandy.co.cc/mirotr/version.txt";
update.pbBetaVersionPrefix = "MirOTR version: ";
-
+
update.cpbBetaVersionPrefix = strlen(update.pbBetaVersionPrefix);
CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update);
@@ -86,7 +85,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { lib_cs_lock();
otr_user_state = otrl_userstate_create();
lib_cs_unlock();
-
+
// this calls ReadPrivkeyFiles (above) to set filename values (also called on ME_FOLDERS_PATH_CHANGED)
InitOptions();
@@ -107,7 +106,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { if (!options.bHaveSRMMIcons) {
MessageBox(0, _T("OTR Info"), _T("Your SRMM plugin does not support status icons. Not all OTR-functions are available!"), 0x30);
}
-
+
// HookEvent(ME_OPT_INITIALISE, OptInit);
// hook setting changed to monitor status
@@ -125,7 +124,7 @@ int NewContact(WPARAM wParam, LPARAM lParam) { // add filter
HANDLE hContact = (HANDLE)wParam;
CallService( MS_PROTO_ADDTOCONTACT, ( WPARAM )hContact, ( LPARAM )MODULENAME );
-
+
return 0;
}
@@ -136,7 +135,7 @@ DLLFUNC int Load(void) mir_getLP( &pluginInfo );
/* for timezones
mir_getTMI(&tmi); */
-
+
CallService(MS_DB_SETSETTINGRESIDENT, TRUE, (LPARAM)(MODULENAME "/TrustLevel"));
/////////////
@@ -151,12 +150,12 @@ DLLFUNC int Load(void) if(DBGetContactSettingByte(0, MODULENAME, "FilterOrderFix", 0) != 2) {
HANDLE hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDFIRST, 0, 0 );
while ( hContact != NULL ) {
- CallService( MS_PROTO_REMOVEFROMCONTACT, ( WPARAM )hContact, ( LPARAM )MODULENAME );
+ CallService( MS_PROTO_REMOVEFROMCONTACT, ( WPARAM )hContact, ( LPARAM )MODULENAME );
hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDNEXT,( WPARAM )hContact, 0 );
- }
+ }
DBWriteContactSettingByte(0, MODULENAME, "FilterOrderFix", 2);
}
-
+
// add us as a filter to all contacts
HANDLE hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDFIRST, 0, 0 );
char *proto;
@@ -165,21 +164,21 @@ DLLFUNC int Load(void) // do not add filter to a chatoom
if ( !(proto && DBGetContactSettingByte(hContact, proto, "ChatRoom", 0)) )
- CallService( MS_PROTO_ADDTOCONTACT, ( WPARAM )hContact, ( LPARAM )MODULENAME );
+ CallService( MS_PROTO_ADDTOCONTACT, ( WPARAM )hContact, ( LPARAM )MODULENAME );
hContact = ( HANDLE )CallService( MS_DB_CONTACT_FINDNEXT,( WPARAM )hContact, 0 );
- }
+ }
HookEvent(ME_DB_CONTACT_ADDED, NewContact);
// create our services
CreateProtoServiceFunction(MODULENAME, PSS_MESSAGE, SVC_OTRSendMessage);
CreateProtoServiceFunction(MODULENAME, PSS_MESSAGE"W", SVC_OTRSendMessageW);
CreateProtoServiceFunction(MODULENAME, PSR_MESSAGE, SVC_OTRRecvMessage);
-
+
// hook modules loaded for updater support
HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
-
+
return 0;
}
diff --git a/plugins/ModernOpt/main.cpp b/plugins/ModernOpt/main.cpp index 97d97aa77f..303f69f032 100644 --- a/plugins/ModernOpt/main.cpp +++ b/plugins/ModernOpt/main.cpp @@ -15,7 +15,6 @@ PLUGININFOEX pluginInfoEx = { "é 2009 Victor Pavlychko, George Hazan",
"http://www.miranda-im.org",
UNICODE_AWARE,
- 0,
{ 0x621f886b, 0xa7f6, 0x457f, { 0x9d, 0x62, 0x8e, 0xe8, 0x4c, 0x27, 0x59, 0x93 }} // {621f886b-a7f6-457f-9d62-8ee84c275993}
};
diff --git a/plugins/NewAwaySysMod/AwaySys.cpp b/plugins/NewAwaySysMod/AwaySys.cpp index 83c27a139d..5b87094143 100644 --- a/plugins/NewAwaySysMod/AwaySys.cpp +++ b/plugins/NewAwaySysMod/AwaySys.cpp @@ -91,7 +91,6 @@ PLUGININFOEX pluginInfo = { "© 2010 NightFox; © 2005-2007 Chervov Dmitry; © 2004-2005 Iksaif; © 2002-2003 Goblineye Entertainment",
"http://MyiEd.org/packs",
UNICODE_AWARE,
- DEFMOD_SRAWAY, // mwawawawa.
{0xb2dd9270, 0xce5e, 0x11df, {0xbd, 0x3d, 0x8, 0x0, 0x20, 0xc, 0x9a, 0x66}}
};
@@ -978,17 +977,9 @@ int MirandaLoaded(WPARAM wParam, LPARAM lParam) update.szComponentName = pluginInfo.shortName;
update.pbVersion = (BYTE*)CreateVersionString(my_make_version(PRODUCTVER), szVersion);
update.cpbVersion = strlen((char*)update.pbVersion);
- update.szUpdateURL = "http://myied.org/packs/NAS"
-
- "W"
-
- ".zip";
+ update.szUpdateURL = "http://myied.org/packs/NASW.zip";
update.szVersionURL = "http://myied.org/packs/NAS/updaterinfo.php";
- update.pbVersionPrefix = (BYTE*)"New Away System Mod"
-
- " Unicode"
-
- " version ";
+ update.pbVersionPrefix = (BYTE*)"New Away System Mod";
update.cpbVersionPrefix = strlen((char*)update.pbVersionPrefix);
CallService(MS_UPDATE_REGISTER, 0, (WPARAM)&update);
diff --git a/plugins/NewEventNotify/main.cpp b/plugins/NewEventNotify/main.cpp index db28bf7fa0..3cf67e39b6 100644 --- a/plugins/NewEventNotify/main.cpp +++ b/plugins/NewEventNotify/main.cpp @@ -46,7 +46,6 @@ PLUGININFOEX pluginInfo = { "GNU GPL",
"http://addons.miranda-im.org/details.php?action=viewfile&id=3637",
UNICODE_AWARE,
- 0,
{0x3503D584, 0x6234, 0x4BEF, {0xA5, 0x53, 0x6C, 0x1B, 0x9C, 0xD4, 0x71, 0xF2 } } // {3503D584-6234-4BEF-A553-6C1B9CD471F2}
};
diff --git a/plugins/NewXstatusNotify/main.cpp b/plugins/NewXstatusNotify/main.cpp index 1500d75401..1837bd03f9 100644 --- a/plugins/NewXstatusNotify/main.cpp +++ b/plugins/NewXstatusNotify/main.cpp @@ -55,7 +55,6 @@ PLUGININFOEX pluginInfoEx = { "© 2001-2004 Luca Santarelli, 2005-2007 Vasilich, 2007-2011 yaho",
"http://miranda-easy.net/mods.php",
UNICODE_AWARE,
- DEFMOD_RNDUSERONLINE,
MIID_NXSN
};
diff --git a/plugins/Nudge/main.cpp b/plugins/Nudge/main.cpp index 1bb2e5b876..dd6912bf6f 100644 --- a/plugins/Nudge/main.cpp +++ b/plugins/Nudge/main.cpp @@ -30,8 +30,7 @@ PLUGININFOEX pluginInfo={ "francois.mean@skynet.be, Sylvain.gougouzian@gmail.com, wishmaster51@googlemail.com",
"copyright to the miranda community",
"http://addons.miranda-im.org/", // www
- UNICODE_AWARE,
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
{ 0xe47cc215, 0xd28, 0x462d, { 0xa0, 0xf6, 0x3a, 0xe4, 0x44, 0x3d, 0x29, 0x26 } } // {E47CC215-0D28-462D-A0F6-3AE4443D2926}
};
diff --git a/plugins/PackUpdater/Src/PackUpdater.cpp b/plugins/PackUpdater/Src/PackUpdater.cpp index 203f30d050..1d58853c1c 100644 --- a/plugins/PackUpdater/Src/PackUpdater.cpp +++ b/plugins/PackUpdater/Src/PackUpdater.cpp @@ -35,7 +35,6 @@ PLUGININFOEX pluginInfoEx = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
//{29517BE5-779A-48e5-8950-CB4DE1D43172}
{0x29517be5, 0x779a, 0x48e5, {0x89, 0x50, 0xcb, 0x4d, 0xe1, 0xd4, 0x31, 0x72}}
};
diff --git a/plugins/Popup/src/config.cpp b/plugins/Popup/src/config.cpp index dd3c683c13..e7908f1099 100644 --- a/plugins/Popup/src/config.cpp +++ b/plugins/Popup/src/config.cpp @@ -68,7 +68,6 @@ PLUGININFOEX pluginInfoEx = POPUP_COPYRIGHT,
POPUP_WEBPAGE,
UNICODE_AWARE,
- 0,
POPUP_UUID
};
diff --git a/plugins/ProfileManager/pmanagerEx.cpp b/plugins/ProfileManager/pmanagerEx.cpp index 627b026b2d..be6bfb8c0f 100644 --- a/plugins/ProfileManager/pmanagerEx.cpp +++ b/plugins/ProfileManager/pmanagerEx.cpp @@ -36,13 +36,8 @@ PLUGININFOEX pluginInfo={ "woobind@ukr.net",
"© 2008 - 2010 Roman Gemini",
"http://code.google.com/p/alfamar/",
- UNICODE_AWARE, //not transient
- 0, //doesn't replace anything built-in
- // Generate your own unique id for your plugin.
- // Do not use this UUID!
- // Use uuidgen.exe to generate the uuuid
+ UNICODE_AWARE,
{0x7eeeb55e, 0x9d83, 0x4e1a, { 0xa1, 0x2f, 0x8f, 0x13, 0xf1, 0xa1, 0x24, 0xfb } }
-
};
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
diff --git a/plugins/QuickMessages/main.cpp b/plugins/QuickMessages/main.cpp index 536512c8ea..d0a4070cf7 100644 --- a/plugins/QuickMessages/main.cpp +++ b/plugins/QuickMessages/main.cpp @@ -47,7 +47,6 @@ PLUGININFOEX pluginInfo = { "© 2008 Danil Mozhar",
"http://miranda.radicaled.ru/index.php?plugin=3",
UNICODE_AWARE,
- 0,
// {37ED754B-6CF9-40ed-9EB6-0FEF8E822475}
{ 0x37ed754b, 0x6cf9, 0x40ed, { 0x9e, 0xb6, 0xf, 0xef, 0x8e, 0x82, 0x24, 0x75 } }
};
diff --git a/plugins/QuickReplies/quickreplies.cpp b/plugins/QuickReplies/quickreplies.cpp index af850c4b82..063ef0c8d3 100644 --- a/plugins/QuickReplies/quickreplies.cpp +++ b/plugins/QuickReplies/quickreplies.cpp @@ -35,7 +35,6 @@ PLUGININFOEX pluginInfoEx = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
// {A6A031B6-D32F-4842-98C6-EC716C576B77}
{0xa6a031b6, 0xd32f, 0x4842, {0x98, 0xc6, 0xec, 0x71, 0x6c, 0x57, 0x6b, 0x77}}
};
diff --git a/plugins/Rate/main.cpp b/plugins/Rate/main.cpp index 760d324b84..1c4c9816a5 100644 --- a/plugins/Rate/main.cpp +++ b/plugins/Rate/main.cpp @@ -68,11 +68,9 @@ PLUGININFOEX pluginInfo={ "kostia@ngs.ru",
"© 2006-2009 Kostia Romanov, based on AuthState by Alexander Turyak",
"http://kildor.miranda.im/",
- UNICODE_AWARE, // is not unicode
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE,
+ // 45230488-977b-405b-856d-ea276d7083b7
{0x45230488, 0x977b, 0x405b, {0x85, 0x6d, 0xea, 0x27, 0x6d, 0x70, 0x83, 0xb7}}
-/* 45230488-977b-405b-856d-ea276d7083b7 */
-
};
extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
diff --git a/plugins/RecentContacts/RecentContacts.cpp b/plugins/RecentContacts/RecentContacts.cpp index ccea08b33b..b2dfc76e9e 100644 --- a/plugins/RecentContacts/RecentContacts.cpp +++ b/plugins/RecentContacts/RecentContacts.cpp @@ -45,8 +45,7 @@ PLUGININFOEX pluginInfo = "kostia@ngs.ru",
"© 2005 ValeraVi, © 2009 Kildor",
"http://kildor.miranda.im",
- UNICODE_AWARE,
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
{ 0x0e5f3b9d, 0xebcd, 0x44d7, {0x93, 0x74, 0xd8, 0xe5, 0xd8, 0x8d, 0xf4, 0xe3}}
/* 0e5f3b9d-ebcd-44d7-9374-d8e5d88df4e3 */
};
diff --git a/plugins/SRMM/srmm.cpp b/plugins/SRMM/srmm.cpp index 9fa71527ff..124798e1b9 100644 --- a/plugins/SRMM/srmm.cpp +++ b/plugins/SRMM/srmm.cpp @@ -38,7 +38,6 @@ PLUGININFOEX pluginInfo = { "Copyright 2000-2012 Miranda IM project",
"http://www.miranda-im.org",
UNICODE_AWARE,
- DEFMOD_SRMESSAGE, // replace internal version (if any)
{0x657fe89b, 0xd121, 0x40c2, { 0x8a, 0xc9, 0xb9, 0xfa, 0x57, 0x55, 0xb3, 0xc }} //{657FE89B-D121-40c2-8AC9-B9FA5755B30C}
};
diff --git a/plugins/Scriver/srmm.cpp b/plugins/Scriver/srmm.cpp index ef02512975..bc645704d1 100644 --- a/plugins/Scriver/srmm.cpp +++ b/plugins/Scriver/srmm.cpp @@ -43,7 +43,6 @@ PLUGININFOEX pluginInfo = { "Copyright (c) 2000-2012 Miranda IM Project",
"http://www.miranda-im.org",
UNICODE_AWARE,
- DEFMOD_SRMESSAGE, // replace internal version (if any)
{0x84636f78, 0x2057, 0x4302, { 0x8a, 0x65, 0x23, 0xa1, 0x6d, 0x46, 0x84, 0x4c }} //{84636F78-2057-4302-8A65-23A16D46844C}
};
diff --git a/plugins/SecureIM/commonheaders.cpp b/plugins/SecureIM/commonheaders.cpp index 3838adbc76..d9d681dc10 100644 --- a/plugins/SecureIM/commonheaders.cpp +++ b/plugins/SecureIM/commonheaders.cpp @@ -35,7 +35,7 @@ PLUGININFOEX pluginInfoEx = { "Johell@ifrance.com, baloo@bk.ru",
"© 2003 Johell, © 2005-09 Baloo",
"http://addons.miranda-im.org/details.php?action=viewfile&id=2445",
- 0, 0,
+ 0,
MIID_SECUREIM
};
diff --git a/plugins/SeenPlugin/main.cpp b/plugins/SeenPlugin/main.cpp index 6acf22cff0..afc7f6822e 100644 --- a/plugins/SeenPlugin/main.cpp +++ b/plugins/SeenPlugin/main.cpp @@ -39,7 +39,6 @@ PLUGININFOEX pluginInfo={ "© 2001-2002 Heiko Schillinger, 2003 modified by Bruno Rino, 2005-7 Modified by YB",
"http://forums.miranda-im.org/showthread.php?t=2822",
UNICODE_AWARE,
- 0,
{ 0x2d506d46,0xc94e,0x4ef8,{0x85, 0x37, 0xf1, 0x12, 0x33, 0xa8, 0x03, 0x81}}/* 2d506d46-c94e-4ef8-8537-f11233a80381 */
};
diff --git a/plugins/SendScreenshotPlus/Main.cpp b/plugins/SendScreenshotPlus/Main.cpp index f2a355a524..66a9b074e1 100644 --- a/plugins/SendScreenshotPlus/Main.cpp +++ b/plugins/SendScreenshotPlus/Main.cpp @@ -53,8 +53,7 @@ PLUGININFOEX pluginInfo={ __AUTHOREMAIL,
__COPYRIGHT,
__AUTHORWEB,
- UNICODE_AWARE,
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
MIID_PLUGIN
};
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp index f6c1b8936a..c5935ce722 100644 --- a/plugins/Sessions/Src/Main.cpp +++ b/plugins/Sessions/Src/Main.cpp @@ -72,7 +72,6 @@ PLUGININFOEX pluginInfo = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
// {60558872-2AAB-45aa-888D-097691C9B683}
{ 0x60558872, 0x2aab, 0x45aa, { 0x88, 0x8d, 0x9, 0x76, 0x91, 0xc9, 0xb6, 0x83 } }
};
diff --git a/plugins/SimpleAR/Src/Main.cpp b/plugins/SimpleAR/Src/Main.cpp index 8ec4bc4550..62c5a34ce6 100644 --- a/plugins/SimpleAR/Src/Main.cpp +++ b/plugins/SimpleAR/Src/Main.cpp @@ -44,7 +44,6 @@ PLUGININFOEX pluginInfoEx = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
// {46BF191F-8DFB-4656-88B2-4C20BE4CFA44}
{0x46bf191f, 0x8dfb, 0x4656, { 0x88, 0xb2, 0x4c, 0x20, 0xbe, 0x4c, 0xfa, 0x44}}
};
diff --git a/plugins/SimpleStatusMsg/main.cpp b/plugins/SimpleStatusMsg/main.cpp index 07b8029842..53abdacbbb 100644 --- a/plugins/SimpleStatusMsg/main.cpp +++ b/plugins/SimpleStatusMsg/main.cpp @@ -43,7 +43,6 @@ PLUGININFOEX pluginInfo = { "© 2006-2011 Bartosz Białek, © 2005 Harven",
"http://code.google.com/p/dezeath",
UNICODE_AWARE,
- DEFMOD_SRAWAY,
// {768CE156-34AC-45a3-B53B-0083C47615C4}
{ 0x768ce156, 0x34ac, 0x45a3, { 0xb5, 0x3b, 0x0, 0x83, 0xc4, 0x76, 0x15, 0xc4 } }
};
diff --git a/plugins/SmileyAdd/main.cpp b/plugins/SmileyAdd/main.cpp index 011bfbebeb..55e4542490 100644 --- a/plugins/SmileyAdd/main.cpp +++ b/plugins/SmileyAdd/main.cpp @@ -53,8 +53,7 @@ static const PLUGININFOEX pluginInfoEx = "Copyright© 2004 - 2012 Boris Krasnovskiy, portions by Rein-Peter de Boer",
"http://code.google.com/p/mirandaimplugins/downloads/list",
// "http://addons.miranda-im.org/index.php?action=display&id=2152",
- UNICODE_AWARE, //not transient
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE,
// {BD542BB4-5AE4-4d0e-A435-BA8DBE39607F}
{ 0xbd542bb4, 0x5ae4, 0x4d0e, { 0xa4, 0x35, 0xba, 0x8d, 0xbe, 0x39, 0x60, 0x7f } }
};
diff --git a/plugins/SpellChecker/spellchecker.cpp b/plugins/SpellChecker/spellchecker.cpp index 70154652c0..ad6be60855 100644 --- a/plugins/SpellChecker/spellchecker.cpp +++ b/plugins/SpellChecker/spellchecker.cpp @@ -33,7 +33,6 @@ PLUGININFOEX pluginInfo={ __COPYRIGHT, __AUTHORWEB, UNICODE_AWARE, - 0, //doesn't replace anything built-in { 0x36753ae3, 0x840b, 0x4797, { 0x94, 0xa5, 0xfd, 0x9f, 0x58, 0x52, 0xb9, 0x42 } } // {36753AE3-840B-4797-94A5-FD9F5852B942} }; @@ -1691,14 +1690,12 @@ void AddMenuForWord(Dialog *dlg, TCHAR *word, CHARRANGE &pos, HMENU hMenu, BOOL data.hReplaceSubMenu = CreatePopupMenu(); - InsertMenu(data.hReplaceSubMenu, 0, MF_BYPOSITION, - base + AUTOREPLACE_MENU_ID_BASE + suggestions.count, TranslateT("Other...")); + InsertMenu(data.hReplaceSubMenu, 0, MF_BYPOSITION, base + AUTOREPLACE_MENU_ID_BASE + suggestions.count, TranslateT("Other...")); if (suggestions.count > 0) { InsertMenu(data.hReplaceSubMenu, 0, MF_BYPOSITION | MF_SEPARATOR, 0, 0); for (int i = suggestions.count - 1; i >= 0; i--) - InsertMenu(data.hReplaceSubMenu, 0, MF_BYPOSITION, - base + AUTOREPLACE_MENU_ID_BASE + i, suggestions.words[i]); + InsertMenu(data.hReplaceSubMenu, 0, MF_BYPOSITION, base + AUTOREPLACE_MENU_ID_BASE + i, suggestions.words[i]); } AppendSubmenu(hMenu, data.hReplaceSubMenu, TranslateT("Always replace with")); diff --git a/plugins/SplashScreen/src/main.cpp b/plugins/SplashScreen/src/main.cpp index 2726801b12..1de4036d42 100644 --- a/plugins/SplashScreen/src/main.cpp +++ b/plugins/SplashScreen/src/main.cpp @@ -64,7 +64,6 @@ PLUGININFOEX pluginInfo={ __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
MIID_SPLASHSCREEN
};
diff --git a/plugins/StatusPlugins/AdvancedAutoAway/main.cpp b/plugins/StatusPlugins/AdvancedAutoAway/main.cpp index f2e357e853..f640369607 100644 --- a/plugins/StatusPlugins/AdvancedAutoAway/main.cpp +++ b/plugins/StatusPlugins/AdvancedAutoAway/main.cpp @@ -59,7 +59,6 @@ PLUGININFOEX pluginInfoEx={ __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
MIID_ADVAUTOAWAY
};
diff --git a/plugins/StatusPlugins/KeepStatus/main.cpp b/plugins/StatusPlugins/KeepStatus/main.cpp index 4cd57cbd31..8766d489b3 100644 --- a/plugins/StatusPlugins/KeepStatus/main.cpp +++ b/plugins/StatusPlugins/KeepStatus/main.cpp @@ -59,7 +59,6 @@ PLUGININFOEX pluginInfoEx={ __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
MIID_KEEPSTATUS
};
diff --git a/plugins/StatusPlugins/StartupStatus/main.cpp b/plugins/StatusPlugins/StartupStatus/main.cpp index 3e2e9fdeb4..87803c7665 100644 --- a/plugins/StatusPlugins/StartupStatus/main.cpp +++ b/plugins/StatusPlugins/StartupStatus/main.cpp @@ -57,7 +57,6 @@ PLUGININFOEX pluginInfoEx={ __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
MIID_STARTUPSTATUS
};
diff --git a/plugins/StopSpamPlus/src/stopspam.cpp b/plugins/StopSpamPlus/src/stopspam.cpp index 6b4f827e16..72d5e175c6 100644 --- a/plugins/StopSpamPlus/src/stopspam.cpp +++ b/plugins/StopSpamPlus/src/stopspam.cpp @@ -19,7 +19,6 @@ PLUGININFOEX pluginInfoEx = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
MIID_STOPSPAM
};
diff --git a/plugins/Svc_crshdmp/crshdmp.cpp b/plugins/Svc_crshdmp/crshdmp.cpp index 91a245d972..18b9f230da 100644 --- a/plugins/Svc_crshdmp/crshdmp.cpp +++ b/plugins/Svc_crshdmp/crshdmp.cpp @@ -51,8 +51,7 @@ static const PLUGININFOEX pluginInfoEx = "borkra@miranda-im.org",
"Copyright© 2008 - 2012 Boris Krasnovskiy All Rights Reserved",
"http://code.google.com/p/mirandaimplugins/downloads/list",
- UNICODE_AWARE, //not transient
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE,
// {F62C1D7A-FFA4-4065-A251-4C9DD9101CC8}
{ 0xf62c1d7a, 0xffa4, 0x4065, { 0xa2, 0x51, 0x4c, 0x9d, 0xd9, 0x10, 0x1c, 0xc8 } }
};
diff --git a/plugins/Svc_dbepp/main.cpp b/plugins/Svc_dbepp/main.cpp index 3356556b23..358ff1a5d5 100644 --- a/plugins/Svc_dbepp/main.cpp +++ b/plugins/Svc_dbepp/main.cpp @@ -32,7 +32,6 @@ PLUGININFOEX pluginInfoEx={ __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
MIID_DBEDITOR
};
diff --git a/plugins/Svc_vi/main.cpp b/plugins/Svc_vi/main.cpp index c378d56106..e875f55750 100644 --- a/plugins/Svc_vi/main.cpp +++ b/plugins/Svc_vi/main.cpp @@ -59,9 +59,9 @@ PLUGININFOEX pluginInfo={ __AUTHOREMAIL,
__COPYRIGHT,
__AUTHORWEB,
- 1, //not transient
- 0,
- {0x2f174488, 0x489c, 0x4fe1, {0x94, 0x0d, 0x59, 0x6c, 0xf0, 0xf3, 0x5e, 0x65}} //{2f174488-489c-4fe1-940d-596cf0f35e65}
+ UNICODE_AWARE,
+ // {2f174488-489c-4fe1-940d-596cf0f35e65}
+ {0x2f174488, 0x489c, 0x4fe1, {0x94, 0x0d, 0x59, 0x6c, 0xf0, 0xf3, 0x5e, 0x65}}
};
static const MUUID interfaces[] = {MIID_VERSIONINFO, MIID_SERVICEMODE, MIID_LAST};
diff --git a/plugins/TabSRMM/src/srmm.cpp b/plugins/TabSRMM/src/srmm.cpp index 877734f49f..b8cfaefdd9 100644 --- a/plugins/TabSRMM/src/srmm.cpp +++ b/plugins/TabSRMM/src/srmm.cpp @@ -65,7 +65,6 @@ PLUGININFOEX pluginInfo = { "2000-2010 Miranda Project and contributors. See readme.txt for more.",
"http://miranda.or.at",
UNICODE_AWARE,
- DEFMOD_SRMESSAGE, // replace internal version (if any)
{0x6ca5f042, 0x7a7f, 0x47cc, { 0xa7, 0x15, 0xfc, 0x8c, 0x46, 0xfb, 0xf4, 0x34 }} //{6CA5F042-7A7F-47cc-A715-FC8C46FBF434}
};
diff --git a/plugins/TipperYM/tipper.cpp b/plugins/TipperYM/tipper.cpp index a9427fd24a..0547a1b32d 100644 --- a/plugins/TipperYM/tipper.cpp +++ b/plugins/TipperYM/tipper.cpp @@ -57,8 +57,7 @@ PLUGININFOEX pluginInfoEx = "yaho@miranda-easy.net",
"© 2005-2007 Scott Ellis, 2007-2011 Jan Holub",
"http://miranda-easy.net/mods.php",
- UNICODE_AWARE,
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
MIID_TIPPER
};
diff --git a/plugins/TooltipNotify/src/main.cpp b/plugins/TooltipNotify/src/main.cpp index a554819998..ccb3fb128c 100644 --- a/plugins/TooltipNotify/src/main.cpp +++ b/plugins/TooltipNotify/src/main.cpp @@ -80,8 +80,7 @@ static PLUGININFOEX sPluginInfo = "perf@mail333.com",
"© 2004-2008 Gneedah software",
"http://addons.miranda-im.org/details.php?action=viewfile&id=1290",
- UNICODE_AWARE,
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
MIID_TOOLTIPNOTIFY_UNICODE
};
diff --git a/plugins/TopToolBar/main.cpp b/plugins/TopToolBar/main.cpp index b806c2858c..2bd283bcfc 100644 --- a/plugins/TopToolBar/main.cpp +++ b/plugins/TopToolBar/main.cpp @@ -29,8 +29,7 @@ PLUGININFOEX pluginInfo = __PLUGIN_EMAIL,
__PLUGIN_RIGHTS,
__PLUGIN_AUTHORWEB,
- UNICODE_AWARE,
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE, //doesn't replace anything built-in
MIID_TTB
};
diff --git a/plugins/TranslitSwitcher/Src/TranslitSwitcher.cpp b/plugins/TranslitSwitcher/Src/TranslitSwitcher.cpp index b97a73dd81..bc1d41f08d 100644 --- a/plugins/TranslitSwitcher/Src/TranslitSwitcher.cpp +++ b/plugins/TranslitSwitcher/Src/TranslitSwitcher.cpp @@ -34,7 +34,6 @@ PLUGININFOEX pluginInfoEx = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
MIID_TS
};
diff --git a/plugins/Updater/updater.cpp b/plugins/Updater/updater.cpp index 906296713b..2d5ac9cc55 100644 --- a/plugins/Updater/updater.cpp +++ b/plugins/Updater/updater.cpp @@ -24,8 +24,7 @@ PLUGININFOEX pluginInfo={ __AUTHOREMAIL,
__COPYRIGHT,
__AUTHORWEB,
- UNICODE_AWARE, //not transient
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE,
{ 0x66dceb80, 0x384, 0x4507, { 0x97, 0x74, 0xcc, 0x20, 0xa7, 0xef, 0x1d, 0x6d } } // {66DCEB80-0384-4507-9774-CC20A7EF1D6D}
};
@@ -70,7 +69,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { LoadOptions();
InitOptionsMenuItems();
-
+
InitNetlib();
InitPopups();
@@ -105,7 +104,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { update.cpbVersion = (int)strlen((char *)update.pbVersion);
update.szBetaChangelogURL = "https://server.scottellis.com.au/wsvn/mim_plugs/updater/?op=log&rev=0&sc=0&isdir=1";
-
+
#ifdef REGISTER_AUTO
@@ -140,7 +139,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { hEventIdleChanged = HookEvent(ME_IDLE_CHANGED, IdleChanged);
- if (ServiceExists(MS_TRIGGER_REGISTERACTION))
+ if (ServiceExists(MS_TRIGGER_REGISTERACTION))
{
// create update action for triggerplugin
ACTIONREGISTER ar = {0};
@@ -160,19 +159,19 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { shk.pszName = "Update";
shk.pszService = MS_UPDATE_CHECKFORUPDATES;
shk.DefHotKey = HOTKEYCODE(HOTKEYF_ALT, 'U') | HKF_MIRANDA_LOCAL;
- Hotkey_Register(&shk);
+ Hotkey_Register(&shk);
shk.pszDescription = LPGEN("Restart");
shk.pszName = "Restart";
shk.pszService = MS_UPDATE_MENURESTART;
shk.DefHotKey = HOTKEYCODE(HOTKEYF_ALT, 'R') | HKF_MIRANDA_LOCAL;
- Hotkey_Register(&shk);
+ Hotkey_Register(&shk);
shk.pszDescription = LPGEN("Update and Exit");
shk.pszName = "UpdateAndExit";
shk.pszService = MS_UPDATE_MENUUPDATEANDEXIT;
shk.DefHotKey = 0;
- Hotkey_Register(&shk);
+ Hotkey_Register(&shk);
return 0;
}
@@ -218,10 +217,10 @@ extern "C" int __declspec(dllexport) Load(void) // 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
- if (options.start_offline)
+ if (options.start_offline)
{
WORD saved_status = DBGetContactSettingWord(0, "CList", "Status", ID_STATUS_OFFLINE);
- if (saved_status != ID_STATUS_OFFLINE)
+ if (saved_status != ID_STATUS_OFFLINE)
{
DBWriteContactSettingWord(0, MODULE, "SavedGlobalStatus", saved_status);
DBWriteContactSettingWord(0, "CList", "Status", ID_STATUS_OFFLINE);
@@ -229,7 +228,7 @@ extern "C" int __declspec(dllexport) Load(void) }
hEventOptInit = HookEvent(ME_OPT_INITIALISE, OptInit);
- hEventModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
+ hEventModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, ModulesLoaded);
hToolBarLoaded = HookEvent(ME_TB_MODULELOADED, ToolbarModulesLoaded);
InitServices();
diff --git a/plugins/UserGuide/main.cpp b/plugins/UserGuide/main.cpp index 3cb391cee1..9a31def815 100644 --- a/plugins/UserGuide/main.cpp +++ b/plugins/UserGuide/main.cpp @@ -14,12 +14,8 @@ PLUGININFOEX pluginInfo={ "yasnovidyashii@gmail.com",
"© 2009 Mikhail Yuriev",
"http://miranda-im.org/",
- UNICODE_AWARE, //not transient
- 0, //doesn't replace anything built-in
- // Generate your own unique id for your plugin.
- // Do not use this UUID!
- // Use uuidgen.exe to generate the uuuid
- MIID_USERGUIDE
+ UNICODE_AWARE,
+ MIID_USERGUIDE
};
static INT_PTR ShowGuideFile(WPARAM wParam,LPARAM lParam)
diff --git a/plugins/UserInfoEx/init.cpp b/plugins/UserInfoEx/init.cpp index b7a757be19..95153823c1 100644 --- a/plugins/UserInfoEx/init.cpp +++ b/plugins/UserInfoEx/init.cpp @@ -62,7 +62,6 @@ static PLUGININFOEX pluginInfo = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- DEFMOD_UIUSERINFO,
MIID_UIUSERINFOEX
};
diff --git a/plugins/UserInfoEx/svc_email.cpp b/plugins/UserInfoEx/svc_email.cpp index d1a8ba02d6..3e11ddb763 100644 --- a/plugins/UserInfoEx/svc_email.cpp +++ b/plugins/UserInfoEx/svc_email.cpp @@ -386,12 +386,7 @@ VOID SvcEMailOnModulesLoaded() **/
VOID SvcEMailLoadModule()
{
- if (DB::Setting::GetByte(SET_EXTENDED_EMAILSERVICE, TRUE))
- {
- // prevent default email module from loading
- PINT_PTR disableDefaultModule = (PINT_PTR)CallService(MS_PLUGINS_GETDISABLEDEFAULTARRAY, 0, 0);
- disableDefaultModule[DEFMOD_SREMAIL] = TRUE;
-
+ if (DB::Setting::GetByte(SET_EXTENDED_EMAILSERVICE, TRUE)) {
// create own email send command
if (!myDestroyServiceFunction(MS_EMAIL_SENDEMAIL))
myCreateServiceFunction(MS_EMAIL_SENDEMAIL, MenuCommand);
diff --git a/plugins/Variables/main.cpp b/plugins/Variables/main.cpp index fc0d49147a..0335e7ae38 100644 --- a/plugins/Variables/main.cpp +++ b/plugins/Variables/main.cpp @@ -65,7 +65,6 @@ PLUGININFOEX pluginInfoEx = { "© 2003-2008 P. Boon, Ricardo Pescuma, George Hazan",
"http://www.miranda-im.org/",
UNICODE_AWARE,
- 0,
MIID_VARIABLES
};
diff --git a/plugins/Variables/variables.cpp b/plugins/Variables/variables.cpp index 9a451fb671..258725055f 100644 --- a/plugins/Variables/variables.cpp +++ b/plugins/Variables/variables.cpp @@ -377,9 +377,7 @@ static TCHAR* replaceDynVars(TCHAR* szTemplate, FORMATINFO* fi) MoveMemory(scur + parsedTokenLen, cur, (_tcslen(cur)+1)*sizeof(TCHAR));
CopyMemory(scur, parsedToken, parsedTokenLen*sizeof(TCHAR));
{
- int len;
-
- len = _tcslen(string);
+ size_t len = _tcslen(string);
string = (TCHAR*)mir_realloc(string, (len+1)*sizeof(TCHAR));
}
if (( ai.flags & AIF_DONTPARSE ) || tmpVarPos >= 0)
diff --git a/plugins/W7UI/main.cpp b/plugins/W7UI/main.cpp index 7f48f93070..ef95d4238e 100644 --- a/plugins/W7UI/main.cpp +++ b/plugins/W7UI/main.cpp @@ -42,8 +42,7 @@ PLUGININFOEX pluginInfo = { "nullbie@miranda.im",
"2009 Victor Pavlychko, Vitaliy Igonin",
"http://nullbie.miranda.im",
- UNICODE_AWARE,
- 0, // replace internal version (if any)
+ UNICODE_AWARE, // replace internal version (if any)
// {D38EEB0B-B8EE-4177-B9E5-91EBE101E054}
{ 0xd38eeb0b, 0xb8ee, 0x4177, { 0xb9, 0xe5, 0x91, 0xeb, 0xe1, 0x1, 0xe0, 0x54 } }
};
diff --git a/plugins/WhenWasIt/WhenWasIt.cpp b/plugins/WhenWasIt/WhenWasIt.cpp index 1f30d31cfe..c2eb1b3fb8 100644 --- a/plugins/WhenWasIt/WhenWasIt.cpp +++ b/plugins/WhenWasIt/WhenWasIt.cpp @@ -41,7 +41,6 @@ PLUGININFOEX pluginInfo = { __COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- 0,
{0x2ff96c84, 0xb0b5, 0x470e, {0xbb, 0xf9, 0x90, 0x7b, 0x9f, 0x3f, 0x5d, 0x2f}} //{2ff96c84-b0b5-470e-bbf9-907b9f3f5d2f}
};
diff --git a/plugins/WhoUsesMyFiles/wumfplug.c b/plugins/WhoUsesMyFiles/wumfplug.c index bcb7fd122f..568917f031 100644 --- a/plugins/WhoUsesMyFiles/wumfplug.c +++ b/plugins/WhoUsesMyFiles/wumfplug.c @@ -20,7 +20,6 @@ static PLUGININFOEX pluginInfo = { "© 2003 Nike. Freeware. Please mail me all bugs & your suggestions.",
"http://miranda-im.org",
UNICODE_AWARE,
- 0,
// {80DCA515-973A-4A7E-8B85-5D8EC88FC5A7}
{ 0x80dca515, 0x973a, 0x4a7e, { 0x8b, 0x85, 0x5d, 0x8e, 0xc8, 0x8f, 0xc5, 0xa7 } }
};
diff --git a/plugins/YAPP/popups2.cpp b/plugins/YAPP/popups2.cpp index c4630f8984..09e6566a67 100644 --- a/plugins/YAPP/popups2.cpp +++ b/plugins/YAPP/popups2.cpp @@ -38,8 +38,7 @@ PLUGININFOEX pluginInfo={ __AUTHOREMAIL,
__COPYRIGHT,
__AUTHORWEB,
- UNICODE_AWARE, //not transient
- 0, //doesn't replace anything built-in
+ UNICODE_AWARE,
{ 0xefd15f16, 0x7ae4, 0x40d7, { 0xa8, 0xe3, 0xa4, 0x11, 0xed, 0x74, 0x7b, 0xd5 } } // {EFD15F16-7AE4-40d7-A8E3-A411ED747BD5}
};
diff --git a/plugins/ZeroNotification/main.cpp b/plugins/ZeroNotification/main.cpp index 63e6ddf92c..292017d15d 100644 --- a/plugins/ZeroNotification/main.cpp +++ b/plugins/ZeroNotification/main.cpp @@ -46,8 +46,7 @@ PLUGININFOEX pluginInfoEx = { "",
COPYRIGHT,
"",
- UNICODE_AWARE, //not transient
- 0,
+ UNICODE_AWARE,
UID
};
@@ -125,7 +124,7 @@ static int SetNotify(const long status){ mi.flags |= CMIM_NAME;
CallService(MS_CLIST_MODIFYMENUITEM,(WPARAM)noSoundMenu,(LPARAM)&mi);
-
+
return 0;
}
@@ -148,14 +147,14 @@ static int ProtoAck(WPARAM wParam, LPARAM lParam) SetNotify(status);
return 0;
- }
+ }
return 0;
}
static INT_PTR CALLBACK DlgProcNoSoundOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
- DWORD test;
+ DWORD test;
switch (msg)
{
case WM_INITDIALOG:
@@ -203,7 +202,7 @@ static INT_PTR CALLBACK DlgProcNoSoundOpts(HWND hwndDlg, UINT msg, WPARAM wParam DBWriteContactSettingDword(NULL,PLUGINNAME_SHORT,"NoSound",MakeCheckBoxTreeFlags(GetDlgItem(hwndDlg,IDC_NOSOUND)));
DBWriteContactSettingDword(NULL,PLUGINNAME_SHORT,"NoBlink",MakeCheckBoxTreeFlags(GetDlgItem(hwndDlg,IDC_NOBLINK)));
DBWriteContactSettingDword(NULL,PLUGINNAME_SHORT,"NoCLCBlink",MakeCheckBoxTreeFlags(GetDlgItem(hwndDlg,IDC_NOCLCBLINK)));
-
+
test = DBGetContactSettingWord(NULL,"CList","Status",0);
SetNotify(Proto_Status2Flag(DBGetContactSettingWord(NULL,"CList","Status",0)));
return TRUE;
diff --git a/plugins/mTextControl/src/main.cpp b/plugins/mTextControl/src/main.cpp index 17a500ca0e..c79cafd892 100644 --- a/plugins/mTextControl/src/main.cpp +++ b/plugins/mTextControl/src/main.cpp @@ -47,7 +47,6 @@ PLUGININFOEX pluginInfoEx = MTEXT_COPYRIGHT,
MTEXT_WEBPAGE,
UNICODE_AWARE,
- 0,
MTEXT_UUID
};
diff --git a/plugins/testplugin/testplug.c b/plugins/testplugin/testplug.c index dbdd08492c..23308382bc 100644 --- a/plugins/testplugin/testplug.c +++ b/plugins/testplugin/testplug.c @@ -24,11 +24,10 @@ PLUGININFOEX pluginInfo={ "© 2002 J. Random Hacker",
"http://miranda-icq.sourceforge.net/",
0, //not transient
- 0, //doesn't replace anything built-in
- // Generate your own unique id for your plugin.
- // Do not use this UUID!
- // Use uuidgen.exe to generate the uuuid
- {0x8b86253, 0xec6e, 0x4d09, { 0xb7, 0xa9, 0x64, 0xac, 0xdf, 0x6, 0x27, 0xb8 }} //{08B86253-EC6E-4d09-B7A9-64ACDF0627B8}
+ // Generate your own unique id for your plugin.
+ // Do not use this UUID!
+ // Use uuidgen.exe to generate the uuuid
+ {0x8b86253, 0xec6e, 0x4d09, { 0xb7, 0xa9, 0x64, 0xac, 0xdf, 0x6, 0x27, 0xb8 }} //{08B86253-EC6E-4d09-B7A9-64ACDF0627B8}
};
BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
|