summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-24 18:44:27 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-24 18:44:27 +0300
commit6ce1301c80786203fcfc2fbc46bbfae73842b6ec (patch)
tree8f688d42bdd8946d7b115bc77979a8724b4bbbc1
parent16488b948b0fe6e473de6afaa9038a766286f26c (diff)
hmm... another not-so-very-useful service
-rw-r--r--include/m_message.h5
-rw-r--r--plugins/Nudge/src/shake.cpp3
-rw-r--r--plugins/Scriver/src/msgs.cpp9
-rw-r--r--plugins/TabSRMM/src/msgs.cpp12
-rw-r--r--src/core/stdmsg/src/msgs.cpp9
5 files changed, 0 insertions, 38 deletions
diff --git a/include/m_message.h b/include/m_message.h
index 477603abc0..a3cfee132e 100644
--- a/include/m_message.h
+++ b/include/m_message.h
@@ -77,11 +77,6 @@ typedef struct {
// Sets a statusbar line text for the appropriate contact
#define MS_MSG_SETSTATUSTEXT "MessageAPI/SetStatusText"
-// wparam = (char*)szBuf
-// lparam = (int)cbSize size of buffer
-// Sets the window class name in wParam (ex. "SRMM" for srmm.dll)
-#define MS_MSG_GETWINDOWCLASS "MessageAPI/WindowClass"
-
typedef struct {
int cbSize;
MCONTACT hContact;
diff --git a/plugins/Nudge/src/shake.cpp b/plugins/Nudge/src/shake.cpp
index 7ecb6d0463..2bce93d0e1 100644
--- a/plugins/Nudge/src/shake.cpp
+++ b/plugins/Nudge/src/shake.cpp
@@ -50,10 +50,7 @@ INT_PTR ShakeChat(WPARAM wParam, LPARAM)
mwid.cbSize = sizeof(MessageWindowInputData);
mwid.hContact = mwd.hContact;
mwid.uFlags = MSG_WINDOW_UFLAG_MSG_BOTH;
-
-
CallService(MS_MSG_GETWINDOWDATA, (WPARAM)&mwid, (LPARAM)&mwd);
- //CallService(MS_MSG_GETWINDOWCLASS,(WPARAM)srmmName,(LPARAM)100 );
HWND parent;
HWND hWnd = mwd.hwndWindow;
diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp
index 42e3b6ee34..b8426c8924 100644
--- a/plugins/Scriver/src/msgs.cpp
+++ b/plugins/Scriver/src/msgs.cpp
@@ -283,14 +283,6 @@ static void RestoreUnreadMessageAlerts(void)
}
}
-static INT_PTR GetWindowClass(WPARAM wParam, LPARAM lParam)
-{
- char *szBuf = (char*)wParam;
- size_t size = (size_t)lParam;
- mir_snprintf(szBuf, size, "Scriver");
- return 0;
-}
-
static INT_PTR GetWindowData(WPARAM wParam, LPARAM lParam)
{
MessageWindowInputData *mwid = (MessageWindowInputData*)wParam;
@@ -646,7 +638,6 @@ int OnLoadModule(void)
CreateServiceFunction(MS_MSG_SENDMESSAGE, SendMessageCommand);
CreateServiceFunction(MS_MSG_SENDMESSAGEW, SendMessageCommandW);
- CreateServiceFunction(MS_MSG_GETWINDOWCLASS, GetWindowClass);
CreateServiceFunction(MS_MSG_GETWINDOWDATA, GetWindowData);
CreateServiceFunction(MS_MSG_SETSTATUSTEXT, SetStatusText);
CreateServiceFunction("SRMsg/ReadMessage", ReadMessageCommand);
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index 62e3702bd0..f81dfb194b 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -60,17 +60,6 @@ int SmileyAddOptionsChanged(WPARAM, LPARAM)
}
/////////////////////////////////////////////////////////////////////////////////////////
-// Message API 0.0.0.3 services
-
-static INT_PTR GetWindowClass(WPARAM wParam, LPARAM lParam)
-{
- char *szBuf = (char*)wParam;
- size_t size = (size_t)lParam;
- mir_snprintf(szBuf, size, "tabSRMM");
- return 0;
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
// wparam = (MessageWindowInputData*)
// lparam = (MessageWindowData*)
// returns 0 on success and returns non-zero (1) on error or if no window data exists for that hcontact
@@ -1129,7 +1118,6 @@ static void TSAPI InitAPI()
{
CreateServiceFunction(MS_MSG_SENDMESSAGE, SendMessageCommand);
CreateServiceFunction(MS_MSG_SENDMESSAGEW, SendMessageCommand_W);
- CreateServiceFunction(MS_MSG_GETWINDOWCLASS, GetWindowClass);
CreateServiceFunction(MS_MSG_GETWINDOWDATA, GetWindowData);
CreateServiceFunction(MS_MSG_SETSTATUSTEXT, SetStatusText);
diff --git a/src/core/stdmsg/src/msgs.cpp b/src/core/stdmsg/src/msgs.cpp
index 214be6a766..79984e8a0b 100644
--- a/src/core/stdmsg/src/msgs.cpp
+++ b/src/core/stdmsg/src/msgs.cpp
@@ -477,14 +477,6 @@ static int PrebuildContactMenu(WPARAM hContact, LPARAM)
return 0;
}
-static INT_PTR GetWindowClass(WPARAM wParam, LPARAM lParam)
-{
- char *szBuf = (char*)wParam;
- int size = (int)lParam;
- mir_snprintf(szBuf, size, SRMMMOD);
- return 0;
-}
-
static INT_PTR SetStatusText(WPARAM wParam, LPARAM lParam)
{
HWND hwnd = WindowList_Find(pci->hWindowList, wParam);
@@ -552,7 +544,6 @@ int LoadSendRecvMessageModule(void)
CreateServiceFunction(MS_MSG_SENDMESSAGE, SendMessageCommand);
CreateServiceFunction(MS_MSG_SENDMESSAGEW, SendMessageCommand_W);
- CreateServiceFunction(MS_MSG_GETWINDOWCLASS, GetWindowClass);
CreateServiceFunction(MS_MSG_GETWINDOWDATA, GetWindowData);
CreateServiceFunction(MS_MSG_SETSTATUSTEXT, SetStatusText);
CreateServiceFunction("SRMsg/ReadMessage", ReadMessageCommand);