I want to write an application (in C++) that is able to connect to a terminal server using the IMsTscAx ActiveX Control. But all my endeavours to establish a connection using this control didn't give any result.
After creation of the control, I call IMsTscAx::Connect() method, but it does nothing. It doesn't begin to connect. I found it out looking at the code in disassembler: actually this code checks the control's member field to be a window handle (by passing it to IsWindow API function), and after discovering that this member is not a window handle the Connect() method just returns. I tried to create a window by the same thread (using only Win32 API) and create an MFC GUI application, but no result.
Does anybody have any ideas? Maybe there's another way to connect to TS?
Bookmarks