From ff34af8edad99fae99b59def8a3d5cce92085a9c Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 11 Aug 2010 02:52:42 +0300 Subject: modified: commonheaders.h modified: gpg_wrapper.cpp modified: gpg_wrapper.h modified: init.cpp modified: main.cpp modified: messages.cpp modified: options.cpp modified: utilities.cpp modified: utilities.h --- messages.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'messages.cpp') diff --git a/messages.cpp b/messages.cpp index 5e8b4de..ab492d1 100644 --- a/messages.cpp +++ b/messages.cpp @@ -15,3 +15,32 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "commonheaders.h" + +int RecvMsgSvc(WPARAM w, LPARAM l) +{ + CCSDATA *ccs = (CCSDATA*)l; + if (!ccs) + return CallService(MS_PROTO_CHAINRECV, w, l); + PROTORECVEVENT *pre = (PROTORECVEVENT*)(ccs->lParam); + if (!pre) + return CallService(MS_PROTO_CHAINRECV, w, l); + char *msg = pre->szMessage; + if (!msg) + return CallService(MS_PROTO_CHAINRECV, w, l); + bool unicode = (bool)(pre->flags&PREF_UNICODE); + + return CallService(MS_PROTO_CHAINRECV, w, l); +} + +int SendMsgSvc(WPARAM w, LPARAM l) +{ + CCSDATA *ccs = (CCSDATA*)l; + if (!ccs) + return CallService(MS_PROTO_CHAINSEND, w, l); + char *msg = (char*)(ccs->lParam); + if (!msg) + return CallService(MS_PROTO_CHAINSEND, w, l); + bool unicode = (bool)(ccs->wParam&PREF_UNICODE); + + return CallService(MS_PROTO_CHAINSEND, w, l); +} \ No newline at end of file -- cgit v1.2.3