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

  • 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.

1 Solution
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:

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.

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