Windows Terminal server msrdp.ocx, RDC x?
-
Tuesday, April 24, 2012 8:21 AM
Hello All
I'm new in this MSDN forum, and yes I have a question ;-).
I' have build a WPF Control with C#. In this WPF Control, I use the msrdp.ocx for connecting various terminal server session. This control works fine. Now, the msrdp.ocx was updated to Version 6.x with the MS patch KB http://support.microsoft.com/kb/956744, but only for Win XP SP3, Vista and Windows Server 2003. The msrdp.ocx was available on the windows operating system DVD, called msrdp.cab.
I' m searching for the msrdp.cab on the windows 7 and Windows 2008 operating system DVD, but there isn't any file. I have tested my Control with Windows 2008 and the old mrdp.ocx (Version 5.2)it's works fine, but the msrdp is little bit old. How can I install a new version for windows 7 or windows 2008? Or is there a new solution possible to build a terminal server session in C#, without using the msrdp.ocx?
My versions:
Visual Studio 2010
.Net 3.5 SP1
Regards, Fredy
All Replies
-
Thursday, April 26, 2012 5:17 AMModerator
Hi Fred20,
We’re doing research on this issue. It might take some time before we get back to you.
Bob Shen [MSFT]
MSDN Community Support | Feedback to us
-
Thursday, April 26, 2012 2:04 PMModerator
Hi Fred,
Welcome to MSDN forums!
In Windows 7, you can add the new Microsoft Terminal Services Client Control or RDP Client control targeted to C:\Windows\System32\mstscax.dll in your designer as well. This mstscax.dll version is 6.1 for Windows 7 system and it's Remote Desktop Services ActiveX Client.
If you want to host the remote desktop control in your app, I think using mstscax.dll is the recommend way and also I don't figure out other ways to do so. Besides, if you just want to connect to the remote server and do not need the UI, WMI is also an option. Please see this thread for detail, http://social.msdn.microsoft.com/Forums/en/vblanguage/thread/5dbc3ae4-6f4d-4224-837c-107897d8f76d
Good day!
Thanks
Michael Sun [MSFT]
MSDN Community Support | Feedback to us
- Edited by Michael Sun [MSFT]Microsoft Employee, Moderator Friday, April 27, 2012 1:46 PM
-
Friday, April 27, 2012 6:01 AM
Hello Bob
No problem, let me know, if you have some information.
Regards, Fredy
-
Friday, April 27, 2012 9:53 AMModerator
Hi Fred,
Did you see my post? :)
Have a nice weekend!
Michael Sun [MSFT]
MSDN Community Support | Feedback to us
-
Friday, April 27, 2012 11:21 AMyes, yes see below.
Regards, Fredy
-
Friday, April 27, 2012 11:25 AM
Hello Michael
Okay, at the moment I use the AxMSTSCLib.AxMsRdpClient4 control. I guess this is not the mstscax.dll, I don't know.
The link in your post is not valid, there is an error: The resource cannot be found??Let me explain the situation:
1. I have a WPF Form for my main app
2. In the WPF, there is a windowsformshost. Why, I guess it's not possible to integarte the msrdp.ocx in the wpf form, and I can't find an other way to start an termianl server session.
3. Now if on the target system the msrdp.ocx is still installed (like WinXP WinServer 2003) the wpf works.Now if I use the Win7 or Windows 2008 the msrdp.ocx is not installed, and the wpf will not work.
In your post you will use the mstscax.dll. What's the difference betwwen this two files?
Is the mstscax.dll the 'normal' dll and the msrdp.ocx is the activeX of the mstscax.dll?If the mstscax.dll will be the same or better way, great. Is this right?
Thanks a lot for your information.
Regards, Fredy
-
Friday, April 27, 2012 1:50 PMModerator
Hi Fred,
I have fixed the link. Please check it.
I think mstscax.dll is similar with msrdp.ocx, and we use mstscax.dll as the Microsoft Terminal Services Client Control or RDP Client control. Its version is 6.1. You can find it at C:\Windows\System32\mstscax.dll in Windows 7 system. You can use mstscax.dll the same way as you use the msrdp.ocx.
Have a nice weekend!
Thanks
Michael Sun [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Fred20 Monday, April 30, 2012 10:47 AM
-
Monday, April 30, 2012 10:47 AM
Hello Michael
Thanks a lot, I will try this way.
Regards, Fredy
-
Tuesday, May 01, 2012 1:12 AMModeratorYou're welcome!
Michael Sun [MSFT]
MSDN Community Support | Feedback to us
-
Wednesday, May 02, 2012 1:22 PM
Hello Michael
Now I have question about the UI with the mstscax.dll. If I use the ocx, I have also the GUI for the terminal session. If I use only the mstscax.dll, I have a problem with the GUI, the dll has no UI. Could you make a littel example please, how I can use the mstscax.dll output. Is there a container needed or panel control or somthing else.
Regards, Fredy
-
Wednesday, May 02, 2012 2:42 PMModerator
Hi Fredy,
Please find the demo here, https://skydrive.live.com/?cid=70A15797AD6367F9&id=70A15797AD6367F9%21124 The file name is TerminalClientTest.zip.
Good day!
Thanks
Michael Sun [MSFT]
MSDN Community Support | Feedback to us
- Edited by Michael Sun [MSFT]Microsoft Employee, Moderator Wednesday, May 02, 2012 3:45 PM
-
Wednesday, May 02, 2012 2:59 PM
Hello Michael
Mmh, sorry the link is not valid.
Regards, Fredy
-
Wednesday, May 02, 2012 3:45 PMModeratorSorry. Please try again!
Michael Sun [MSFT]
MSDN Community Support | Feedback to us
-
Wednesday, May 02, 2012 8:52 PM
Hello Michael
Again, thanks for your friendly help.
Regards, Fredy

