summaryrefslogtreecommitdiff
path: root/messages.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-08-11 02:52:42 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-08-11 02:52:42 +0300
commitff34af8edad99fae99b59def8a3d5cce92085a9c (patch)
tree083fede580c7df94a0a588f5b325bf693bc427a6 /messages.cpp
parent1de40ac790d3218cc10d37f95f9f1a8c573dbe77 (diff)
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
Diffstat (limited to 'messages.cpp')
-rw-r--r--messages.cpp29
1 files changed, 29 insertions, 0 deletions
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