|I've been trying to figure this one out for the past couple of days with no success
Here's the relevant code: http://pastebin.ca/1419150
I'm testing this on a Windows XP SP3 virtual machine. I connect to it using mstsc from a Windows Vista Ultimate x64 machine (which is also the host for the XP virtual machine). The program running on the RDP host (the XP machine) also opens two other virtual channels in much the same way and they work fine.
Any help is much appreciated