DCOM/RPC transport over RDP virtual channel?
Posted on 2012-03-19
In a Win32 application (C++ native code) that runs on a Windows Terminal Server via Remote Desktop I want to be able to call COM objects that run on the client computer (in order to communicate with local hardware). I could use DCOM over TCP/IP but that requires opening extra ports and extra authentication, in parallel to the already existing RDP link. Instead, I would like to tunnel the DCOM remote procedure calls (RPC) over an RDP Virtual Channel (similar to the way client-side printer drivers are accessed).
This should work on Windows 2008 Server with Windows XP and Windows 7 clients.
Basically I know about the technologies involved, but I am wondering if someone has invented that wheel already. Can anyone point me to articles, example code, discussions about this topic?
Or perhaps tell me why this would be a bad idea.