From 74aabf4bccef1ebe3eace60a9694f44e9a0499ec Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 6 Jun 2012 20:43:53 +0000 Subject: that's all changes git-svn-id: http://svn.miranda-ng.org/main/trunk@341 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AssocMgr/main.cpp | 53 +++++++++++++---------------------------------- 1 file changed, 14 insertions(+), 39 deletions(-) (limited to 'plugins/AssocMgr/main.cpp') diff --git a/plugins/AssocMgr/main.cpp b/plugins/AssocMgr/main.cpp index a689ad654d..2a1ad430a2 100644 --- a/plugins/AssocMgr/main.cpp +++ b/plugins/AssocMgr/main.cpp @@ -31,13 +31,13 @@ int hLangpack; PLUGININFOEX pluginInfo={ sizeof(PLUGININFOEX), - "File Association Manager", - PLUGIN_VERSION, - "Handles file type associations and URLs like aim, ymsgr, xmpp, wpmsg, gg, tlen.", /* autotranslated */ - "H. Herkenrath", - "hrathh@users.sourceforge.net", - "© 2005-2007 H. Herkenrath", - PLUGIN_WEBSITE, + __PLUGIN_NAME, + PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), + __DESCRIPTION, + __AUTHOR, + __AUTHOREMAIL, + __COPYRIGHT, + __AUTHORWEB, UNICODE_AWARE, 0, // {52685CD7-0EC7-44c1-A1A6-381612418202} @@ -45,15 +45,9 @@ PLUGININFOEX pluginInfo={ }; static const MUUID interfaces[]={MIID_ASSOCMGR,MIID_AUTORUN,MIID_LAST}; -BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,void *pReserved) +BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) { - UNREFERENCED_PARAMETER(pReserved); - if(fdwReason==DLL_PROCESS_ATTACH) { - /* Do not call this 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); - } + hInst = hinstDLL; return TRUE; } @@ -96,36 +90,21 @@ static int AssocMgrModulesLoaded(WPARAM wParam,LPARAM lParam) return 0; } -#ifdef __cplusplus -extern "C" { -#endif - -__declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) +extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { return &pluginInfo; } -__declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) +extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) { return interfaces; } -__declspec(dllexport) int Load(PLUGINLINK *link) +extern "C" __declspec(dllexport) int Load(PLUGINLINK *link) { pluginLink=link; mir_getLP(&pluginInfo); - /* 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)