summaryrefslogtreecommitdiff
path: root/ContactsPlus/main.cpp
diff options
context:
space:
mode:
authorjokusoftware@gmail.com <jokusoftware@gmail.com@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-11-23 19:43:59 +0000
committerjokusoftware@gmail.com <jokusoftware@gmail.com@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-11-23 19:43:59 +0000
commit615f5963a421bb4d4bfcb94ed2c39623e54bf328 (patch)
treeb23984cd3ec623b2fb78e837e8cf73bf38b6ec3f /ContactsPlus/main.cpp
parentcbdcff1c9d14ff7f0fa88fdbde25968d69ec0520 (diff)
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
Diffstat (limited to 'ContactsPlus/main.cpp')
-rw-r--r--ContactsPlus/main.cpp14
1 files changed, 10 insertions, 4 deletions
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;
}