5

First, I guess I'd have to figure out if I'm running remotely and second I'd have to figure out whether my remote connection is a standalone remote app or an app running on a terminal server (that may be tricky).

But, once I've figured out all those awful things, is there a way to run a windows function like ShellExecute locally instead of remotely?

The reason I'd want to do this is because I launch a web browser to view rather high bandwidth things that require javascript and flash and certain sysadmins who administer our product aren't too keen on having to make unnecessary and insecure modifications to their terminal server farm.

Community
  • 1
  • 1
Peter Turner
  • 10,788
  • 9
  • 62
  • 106

2 Answers2

2

Yes, if the clients are running Windows and you can install software on them.

See Remote Desktop Services Virtual Channels in MSDN.

Harry Johnston
  • 33,445
  • 6
  • 56
  • 142
  • You don't happen to have any idea which DLL has the VirtualChannelInit function? I'm a delphi programmer so I'm trying to implement this via the JEDI win32 api, the wtsapi32 is all implemented, but MSDN says the functions for the client side are in CClient.H and I don't know where that's pointing to. – Peter Turner Dec 14 '11 at 16:11
  • Crap, I guess I have to write it myself. I wonder if I'm the first Delphi programmer to try this... – Peter Turner Dec 14 '11 at 16:44
  • The documentation for VirtualChannelInit says "Remote Desktop Services provides a pointer to a VirtualChannelInit function in the CHANNEL_ENTRY_POINTS structure passed to your VirtualChannelEntry entry point." So you don't need to link to a DLL. Most likely, the function is in the executable that is calling *your* DLL! – Harry Johnston Dec 14 '11 at 18:58
  • Yeah, I figured that out, thanks - only 6 functions and 1 struct, not too much of an awful API to implement. Haven't quite got it working yet though. Lots of cryptic errors. This was pretty handy: http://www.codeproject.com/script/Articles/ViewDownloads.aspx?aid=9316 – Peter Turner Dec 14 '11 at 19:53
1

There is a free tool that does exactly what you want. I got reference from TechNet forums, it's named Remote Executer from http://www.mqtechnologies.com

Good luck