From e89f03b9f2af75ce231367befb584aaa948c420c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 14 Jun 2015 16:34:53 +0000 Subject: strange service SRMsg/LaunchMessageWindow removed git-svn-id: http://svn.miranda-ng.org/main/trunk@14165 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/HistoryPlusPlus/hpp_messages.pas | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'plugins/HistoryPlusPlus') diff --git a/plugins/HistoryPlusPlus/hpp_messages.pas b/plugins/HistoryPlusPlus/hpp_messages.pas index 23f5f6bfdb..8cd67bbb8d 100644 --- a/plugins/HistoryPlusPlus/hpp_messages.pas +++ b/plugins/HistoryPlusPlus/hpp_messages.pas @@ -58,20 +58,8 @@ function SendMessageTo(hContact: THandle; const Text: String): Boolean; var buff: AnsiString; begin - if boolean(ServiceExists(MS_MSG_SENDMESSAGEW)) then - Result := (CallService(MS_MSG_SENDMESSAGEW,WPARAM(hContact),LPARAM(PChar(Text))) = 0) - else - begin - buff := AnsiString(Text); - Result := (CallService(MS_MSG_SENDMESSAGE,WPARAM(hContact),LPARAM(PAnsiChar(buff))) = 0); - if not Result then - Result := (CallService('SRMsg/LaunchMessageWindow',WPARAM(hContact),LPARAM(PAnsiChar(buff))) = 0); - end; + buff := AnsiString(Text); + Result := (CallService(MS_MSG_SENDMESSAGE,WPARAM(hContact),LPARAM(PAnsiChar(buff))) = 0); end; -{function ForwardMessage(Text: AnsiString): Boolean; -begin - Result := (CallService(MS_MSG_FORWARDMESSAGE,0,LPARAM(PAnsiChar(Text)))=0); -end;} - end. -- cgit v1.2.3