From 615f5963a421bb4d4bfcb94ed2c39623e54bf328 Mon Sep 17 00:00:00 2001 From: "jokusoftware@gmail.com" Date: Wed, 23 Nov 2011 19:43:59 +0000 Subject: updated Contacts+ plug-in: - applied x64 compatibility patch from FREAK_THEMIGHTY git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@203 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- ContactsPlus/main.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'ContactsPlus/main.cpp') diff --git a/ContactsPlus/main.cpp b/ContactsPlus/main.cpp index 3ea902b..7f167c8 100644 --- a/ContactsPlus/main.cpp +++ b/ContactsPlus/main.cpp @@ -52,7 +52,11 @@ int g_UnicodeCore; PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), +#ifdef WIN64 + "Send/Receive Contacts+ (x64)", +#else "Send/Receive Contacts+", +#endif PLUGIN_MAKE_VERSION(1,5,2,0), "Allows you to send and receive contacts", "Joe Kucera, Todor Totev", @@ -206,8 +210,10 @@ static int HookModulesLoaded(WPARAM wParam, LPARAM lParam) ghSendWindowList = (HANDLE)CallService(MS_UTILS_ALLOCWINDOWLIST, 0, 0); // no need to destroy this ghRecvWindowList = (HANDLE)CallService(MS_UTILS_ALLOCWINDOWLIST, 0, 0); // no need to destroy this +#ifndef WIN64 //register for Update (the FL name is different...) CallService(MS_UPDATE_REGISTERFL, 1253, (WPARAM)&pluginInfo); +#endif ProcessUnreadEvents(); return 0; @@ -245,7 +251,7 @@ static int HookContactDeleted(WPARAM wParam, LPARAM lParam) } -static int ServiceSendCommand(WPARAM wParam, LPARAM lParam) +static INT_PTR ServiceSendCommand(WPARAM wParam, LPARAM lParam) { HWND hWnd; //find window for hContact @@ -261,7 +267,7 @@ static int ServiceSendCommand(WPARAM wParam, LPARAM lParam) return 0; } -static int ServiceReceiveCommand(WPARAM wParam, LPARAM lParam) +static INT_PTR ServiceReceiveCommand(WPARAM wParam, LPARAM lParam) { CLISTEVENT* pcle = (CLISTEVENT*)lParam; @@ -336,8 +342,8 @@ extern "C" __declspec(dllexport) int Load(PLUGINLINK *link) hServiceSend = CreateServiceFunction(MS_CONTACTS_SEND, ServiceSendCommand); hServiceReceive = CreateServiceFunction(MS_CONTACTS_RECEIVE, ServiceReceiveCommand); //define event sounds - SkinAddNewSound("RecvContacts", Translate("Incoming Contacts"), "contacts.wav"); - SkinAddNewSound("SentContacts", Translate("Outgoing Contacts"), "ocontacts.wav"); + SkinAddNewSound("RecvContacts", LPGEN("Incoming Contacts"), "contacts.wav"); + SkinAddNewSound("SentContacts", LPGEN("Outgoing Contacts"), "ocontacts.wav"); return 0; } -- cgit v1.2.3