summaryrefslogtreecommitdiff
path: root/ContactsPlus/main.cpp
diff options
context:
space:
mode:
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;
}