Tech Support > Microsoft Windows > Development Resources > Instant Messaging - how can I grab the messages
Instant Messaging - how can I grab the messages
Posted by Younger Dryas on February 17th, 2004


It looks like Instant Messaging apparently also can be used for
process to process rather than person to person (See Dr Dobbs, March
04, p48) So, I want to make a piece of software that will grab (or
get a copy of) any, say, MSN Instant Messages right as they arrive at
my PC and then do some kind of processing of the data in the messages.
Any thoughts on how to get to these messages in this sort of real
time fashion?
..

Posted by Tim Robinson on February 17th, 2004


"Younger Dryas" <Doctorh3@comcast.net> wrote in message
news:ed4635f9.0402171019.1a709d76@posting.google.c om...
MSN Messenger supports a proxy, so you could write a program which acted as
a proxy and passed the packets straight through. Messenger supports HTTP,
SOCKS 4 and SOCKS 5; I guess an HTTP proxy would be simplest.

--
Tim Robinson (MVP, Windows SDK)
http://mobius.sourceforge.net/



Posted by Peter Lee on February 17th, 2004


Tim> MSN Messenger supports a proxy, so you could write a program
Tim> which acted as a proxy and passed the packets straight
Tim> through. Messenger supports HTTP, SOCKS 4 and SOCKS 5; I
Tim> guess an HTTP proxy would be simplest.

Messenger also supports automation. Another, possibly easier, way to
do it would be this route. After a quick #import of msmsgs.exe I see
support for the following events.

inline HRESULT DMsgrObjectEvents::OnTextReceived ( ...
inline HRESULT DMsgrObjectEvents::OnSPMessageReceived ( ...
inline HRESULT DMsgrObjectEvents::OnUserJoin ( ...
inline HRESULT DMsgrObjectEvents::OnUserLeave ( ...

among others...



Posted by Boris Dynin on February 18th, 2004


You could also hook Winsock DLL: ws2_32.dll .

Boris
"Younger Dryas" <Doctorh3@comcast.net> wrote in message
news:ed4635f9.0402171019.1a709d76@posting.google.c om...



Similar Posts