Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1743
  • Last Modified:

WTS - WTSSendMessage()

Hi all

I'm using WTSSendMessage() to post messages around on WTS, from client to client app running on a server. Does any one know how I can "catch" this message (so that I can read and save the message text) before/as it pops up on each app?
I'd like to be able to store the messages that each app receives in a log file.

Thanks.
0
AntonHx
Asked:
AntonHx
1 Solution
 
2266180Commented:
are you by any chance talking about this function: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/wtssendmessage.asp ? because if so, I really don't see how you can catch a message sent in order to display a messagebox.
however, if you are trying to communicate between applications in different sessions, then using virtual channels might be an idea. check the list of functions here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/terminal_services_api_functions.asp
some examples of use:
http://groups.google.ro/group/borland.public.delphi.nativeapi/browse_thread/thread/599c6a42a62a1f1e/fe99499a24b88c7f%23fe99499a24b88c7f
http://www.codeproject.com/internet/tswindowclipper.asp

However, I would instruct you to use sockets as it is the most platform independednt solution to communicate between applications and allows you to have (if desired in teh future) remote control and plugin of otehr appilcaitons from other platforms. plus that allows you to exchange data no matter the format/size.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now