Should I use AxMsRdpClient6 or AxMSTSCLib.AxMsRdpClient8NotSafeForScripting

Hello,
I'm trying to create windows form application that allows a user to connect to a virtual machine. I have implemented VCL 
http://vcl.apache.org/ and users are
allowed to download the rdp file but I would like to automate it so when they click connect(in vcl php interface. ( I believe I need to create a uri in registry so the browser knows to call my windows form  program to handle rdp protocol) RDP automatically
connects them to the vm with the temporary password and username. I have some example code below. Eventually I'm going to parse the URI and pass those parameters. My question is what happens if the client is using Windows XP will the rdp control v8(AxMSTSCLib.AxMsRdpClient8NotSafeForScripting)
work? what's the best approach for what I'm trying to accomplish. Any help in getting me started is appreciated. 
private void button1_Click(object sender, EventArgs e)
Uri uri;
uri = new Uri("rdp://username:[email protected]?forwardDisks=yes&forwardPrinters=yes&forwardSerial=yes&forwardAudio=yes&drawDesktop=yes&title=VCL%20Reservation&screenWidth=1280&screenHeight=1024");
Console.WriteLine(uri.UserInfo);
Console.WriteLine("Fully Escaped {0}", uri.UserEscaped ? "yes" : "no");
rdp.Server = "10.10.11.63";
rdp.UserName = "username";
rdp.AdvancedSettings9.ClearTextPassword = "9TSDSw";
rdp.AdvancedSettings9.RedirectDrives = true;
rdp.Connect();
Here is some more generated code.
namespace VCLConnect
partial class RDPWindow
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
if (disposing && (components != null))
components.Dispose();
base.Dispose(disposing);
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RDPWindow));
this.connect = new System.Windows.Forms.Button();
this.rdp = new AxMSTSCLib.AxMsRdpClient8NotSafeForScripting();
((System.ComponentModel.ISupportInitialize)(this.rdp)).BeginInit();
this.SuspendLayout();
// connect
this.connect.Location = new System.Drawing.Point(12, 596);
this.connect.Name = "connect";
this.connect.Size = new System.Drawing.Size(75, 23);
this.connect.TabIndex = 1;
this.connect.Text = "Connect";
this.connect.UseVisualStyleBackColor = true;
this.connect.Click += new System.EventHandler(this.button1_Click);
// rdp
this.rdp.Enabled = true;
this.rdp.Location = new System.Drawing.Point(12, 12);
this.rdp.Name = "rdp";
this.rdp.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("rdp.OcxState")));
this.rdp.Size = new System.Drawing.Size(1172, 578);
this.rdp.TabIndex = 2;
this.rdp.OnConnecting += new System.EventHandler(this.axMsRdpClient8NotSafeForScripting1_OnConnecting);
// RDPWindow
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1196, 631);
this.Controls.Add(this.rdp);
this.Controls.Add(this.connect);
this.Name = "RDPWindow";
this.Text = "Remote Desktop Connection";
((System.ComponentModel.ISupportInitialize)(this.rdp)).EndInit();
this.ResumeLayout(false);
#endregion
private System.Windows.Forms.Button connect;
private AxMSTSCLib.AxMsRdpClient8NotSafeForScripting rdp;

Some other code. Just getting started so I have not piece it all together yet but I'd like to know what controls to use and if I need separate code for 32 vs 64 bit and XP and windows 7 etc.. Thank You
static void Main(string[] args)
if (args.Length == 1)
// format of uri passed in:
/* rdp://username:[email protected]?forwardDisks=yes&forwardPrinters=yes&forwardSerial=yes
* &forwardAudio=yes&drawDesktop=yes&title=VCL%20Reservation&screenWidth=1280&screenHeight=1024
Uri uri = null;
try
uri = new Uri(args[0]);
catch (UriFormatException ex)
System.Windows.Forms.MessageBox.Show(ex.Message.ToString());
System.Windows.Forms.MessageBox.Show(HttpUtility.ParseQueryString(uri.Query).Get("title"));
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
//Application.Run(new RDPWindow());

Similar Messages

  • We have 4 iphones in our family and an Ipad.  When we purchase music I would like for the entire family to be able to use it.  Should each of us use a different apple account or should we use the same one.

    We have 4 iphones and an Ipad in our family. When we purchase music, I would like for the entire family to be able to use it and then back it up to Icloud. What is the best and cheapest way for this to happen.  Should we all have a different apple id or should we use the same one.

    You will all need to be on the same itunes account ID.
    You can however all have seperate icloud accounts aswel.

  • What type of hard disk should I use if I want to use it on mac and windows?

    Hey Forum,
    I am using windows xp on my macbook (snow leopard). I came across some dealers who say that there are hard disks for mac only and for both mac and windows. So, I wanted to buy a hard disk so that I can use it both on mac and windows xp, so what type of hard disk should I use? Must I partition into 2?
    or are there any harddisk in the market which is compatible for both mac and windows xp without screwing up the format(NTFS/Mac OS X Journaled)? Pls look into this matter and help me with it.
    All of your replies and suggestions is much appreciated.
    Thank you.
    Ala.

    Run, don't walk, from that dealer! and never look back
    Once in a very long while Apple will have customized firmware on drives, and it is possible to find SCSI/SAS or drives that are destined to be used with high end storage controllers.
    But that is the exception that makes the rule.
    SATA is SATA. Though.... there are now SATA III drives that don't work in XP, or that need a jumper, and Seagate and some drives have managed to deliver firmware that has caused trouble... and Apple has had to issue firmware updates to help compatibility....

  • Return under Warranty (Tracking Line only) Should we use MIGO - Goods Issue

    Return under Warranty (Tracking Line only) Should we use MIGO - Goods Issue when sending out Materials for repair or exchange under Warranty (Free)?

    Please post it in SD/MM forum.

  • I feel I must move beyond iMovie, what program should I use ?

    I have been happily using iMovie and iDVD from versions 1 through 6.  iMovie 08 was so bad that Apple made iMovie 06 available as a free download for buyers of iMovie 08. The newer iMovies were better, but they seemed “dumbed down” (even for me).  Now, I am shocked and horrified to learn that the latest iMovie does not even set chapter markers!
    So, I have continued to use iMovie 06 and iDVD 08 (they seem to work fine under OS 10.9.4).   iMovie 06 is now 8 years old!  I feel compelled to move forward. A lot of my work is DV.    In the past, most of my source material came out of S-Video.   I used a Canopus ADVC300 analog-to-digital converter that gave good results.   Going forward, I will have more video utilizing Component Video, or HDMI.
    I am looking into 2 possibilities,  Adobe Premiere elements 12, or.........Final Cut Pro X.
    The final result of my work is almost always a DVD.   It is hard for me to move from iMovie and iDVD.  I never read the manuals for either program, yet,  I was able to produce DVDs with nice menus and overall quality close to Hollywood.
    It looks like Final Cut Pro X 'can' make a DVD directly without other software.  However, from what I have seen on YouTube the result is primitive compared to what iDVD was doing 10 years ago.
    Adobe Premiere elements 12 can make nice DVDs and Blu-ray's directly.  I have no problem with using a separate program to make DVDs but I haven't got a clue how to do that with Final Cut Pro X.   I suppose I can still use iDVD, but now I'm back to using discontinued software.
    I do not need any of the high-powered affects capability that Final Cut Pro X  possesses.  My “movie-making” is mostly confined to simple editing (the old iMovie 06 did all I needed).
    Frankly, one motivation for choosing Final Cut Pro X, is the excellent, compassionate and understanding support that the kind people on this very forum provide.  So, what program should I use?

    Ziatron wrote:
    ...  I am shocked and horrified to learn that the latest iMovie does not even set chapter markers!
    .. I am looking into 2 possibilities,  Adobe Premiere elements 12, or.........Final Cut Pro X.
    The final result of my work is almost always a DVD. ...
    ... I do not need any of the high-powered affects capability that Final Cut Pro X  possesses.  My “movie-making” is mostly confined to simple editing (the old iMovie 06 did all I needed).
    to turn perspective for a second by 180°:
    Why do you want to switch to a new editor anyhow?
    • iM-a never did discs - that was iDVDs job = no big change in your workflow
    • iDVD is still working, and aside obsolete, complex and $$$$ DVDSP (part of obsolete FC/p) or Encore (part of Adobes CC rent package) your only option left to create disks on MacOS is indeed iDVD (...ok, there's Toast and Burn and some weird 'shareware'-stuff...)..
    • iMovie-b supports the new HDef formats (AVCHD) - you mentioned converters and DVDs = no HDef in use, in your habitat, correct?
    • if you don't need FCPX' bling-bling (I can't imagine that ) - why not using FCPX-lite = iMovie? 15$ ...
    • chapters could be done in iDVD - just to mention that ............
    • AP and FCPX are following very different concepts in usage - my personal preference is 200% on FCPX, … I was one of the loudest nay-sayers, when iM08 araised, meanwhile, FCPX is my dream!! AP (tested it) is way too complex, crowded, 'optionalized' and did I mention 'complex' for me. A bit like Windows vs. MacOS: 'everything goes' (incl. getting lost) vs. 'convenience' (incl. restrictions) ... After 2y of practice, I'm editing my weekly hobby-projects with 6-cam-Multicam, incl. tons of  custom graphics, slow-mow, effects (soccer games) in less than 2h ... awesome!
    summary:
    • why switching?
    • use iMovie10 + iDVD
    • Premiere (or Premiere Elements!) and FCPX are both avail as fee trial ... test  it - but you need iDVD anyhow
    • 'disks'  is a dwindling niché, for years!- consider to switch to 'other' distribution options
    ... what are 'chapters' anyhow??... (kid din'!)

  • Which C# Adobe library should I use to open a PDF in Acrobat Reader 9, 10, and 11?

    Hi, all.
    I have a Visual Studio C# application that writes an Adobe PDF using iText. Does anyone know how to programmatically open the PDF on client's computer and ensure it works for Adobe Reader 9, 10, and 11?
    -I have Adobe Reader XI on my machine and "Adobe Pdf Reader" is NOT showing up in my COM references. This is the library that I've heard people use for this.
    -The "Adobe Reader File Preview Type Library" is showing up there, but does not add to my project because of the following error message: "A reference to 'Adobe Reader File Preview Type Library' could not be added. Could not register the ActiveX type library....adoberfp.dll'." But I haven't persued this further becuase I'm not even convinced I should be using this library, which brings me to my next point:
    -Please don't tell me to go read the Adobe SDK spec. In searching for this answer, I found posts on here with people asking this question and getting not great answers, or half-*** answers to go read the Adobe SDK spec. I have the Adobe SDK spec, it's terrible. The example source code is laughably poor and reads like it was written by someone with bad english, with poor naming, commenting, and documentation, and there is no separate document that explains what the source code does. I think the reason people say this is because they haven't read it themselves and they don't know the answer and hope to deal with the question by handwaving. Sorry for the rant if you weren't going to do that!
    Thanks in advance, if anyone knows.
    -Brandon

    It will be from a client-side application, and I will be reviewing this further and get back on it. At this time my assembly isn't the correct type of 32-bit, which may be a deal-breaker. But downgrading it to 32-bit, I wasn't able to find or include the appropriate library for AXAcroPDF.
    Just a word about my trying to read the SDK documentation. The documentation folder has 5 items, a folder called "Javascript", an html file caled "Acrobat_11_SDK_Help_Shortcut.html", a zip file called "...HTMLHelp.zip," pdf_reference.pdf, and U3DElements.pdf. I've never heard of U3DElements, so surely that isn't meant for me. The pdf_reference.pdf, when opened, has three PDF links to two supplements to ISO 32000-1 and a document titled Document management. These describe the PDF spec, so that's not for me. So I must have to use the HTML documentation shortcut. I open it, and my browser says the redirect URL can't be found. Ah, may be that stuff in the ZIP file it's referencing. After unzipping it, you have to move the file around so that it actually references the right index.html inside the unzipped folders, and then even after this it loads up as two blank frames in my browser. I will look into why the links are all dead, but holy lord, this is just not very helpful at all.
    Thanks for your help, Test Screen Name.

  • Should I use one apple id with multiple devices?

    I have 2 iPods an iPad and a new iPhone. Should I use the same Apple ID on all decvices?  The iPods are for the kids to use. Also, will be adding apple tv soon...

    I registered my daughters two I touches using my apple I'd , but now told I should use separate IDs even though only my credit card is to be used when authorized by me.  As I try to figure this very confusing dilemma out, didninunderstand correctly that if I remove their devices now from my ID, they can't be associated with another device for 90 days?  Is their a walk thru tutorial somewhere about how to do this bc I'm beginning to think some mistakes are irreversible for 90 days if you try to figure it out and are wrong!

  • What query should I use to find all versions of Office 2013 64-bit installed on client computers?

    What query should I use to find all versions of Office 2013 64-bit installed on client computers? Could someone create a custom query? I need all of the client computers names and which ones have any Office 64-bit components. Thank you so much! I really
    appreciate it!

    Hi,
    You could edit the following query to meet your requirement.
    SELECT     dbo.v_R_System.Name0, dbo.v_GS_OPERATING_SYSTEM.Caption0 AS [Operating System],
                          dbo.v_GS_OPERATING_SYSTEM.CSDVersion0 AS [OS Service Pack], arp.DisplayName0,
                          CASE WHEN arp.version0 LIKE '11.0.6361.0' THEN 'SP1' WHEN arp.version0 LIKE '11.0.7969.0' THEN 'SP2' WHEN arp.version0 LIKE '11.0.8173.0'
    THEN 'SP3' WHEN
                           arp.version0 LIKE '12.0.6215.1000' THEN 'SP1' WHEN arp.version0 LIKE '12.0.6425.1000' THEN 'SP2' WHEN arp.version0 LIKE '14.0.6029.1000'
    THEN 'SP1' ELSE '' END
                           AS 'Service Pack', arp.Version0
    FROM         dbo.v_Add_Remove_Programs AS arp INNER JOIN
                          dbo.v_R_System ON arp.ResourceID = dbo.v_R_System.ResourceID INNER JOIN
                          dbo.v_RA_System_SMSInstalledSites AS ASSG ON dbo.v_R_System.ResourceID = ASSG.ResourceID INNER JOIN
                          dbo.v_GS_OPERATING_SYSTEM ON dbo.v_R_System.ResourceID = dbo.v_GS_OPERATING_SYSTEM.ResourceID
    WHERE     (arp.DisplayName0 LIKE '%Microsoft Office%edition%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Standard 2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Enterprise 2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Professional%2007%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Standard 2010%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Enterprise 2010%' OR
                          arp.DisplayName0 LIKE '%Microsoft Office Professional%2010%' OR
                          arp.DisplayName0 LIKE 'Microsoft Office 2000%' OR
                          arp.DisplayName0 LIKE 'Microsoft Office XP%') AND (arp.DisplayName0 NOT LIKE '%update%') AND
                          (arp.DisplayName0 NOT LIKE '%Microsoft Office XP Web Components') AND (dbo.v_R_System.Operating_System_Name_and0 NOT LIKE '%server%')
    AND
                          (arp.InstallDate0 NOT LIKE 'NULL')
    ORDER BY dbo.v_R_System.Name0, arp.DisplayName0, arp.Version0
    Full details:http://social.technet.microsoft.com/Forums/systemcenter/en-US/7baeb348-fb63-4115-8d76-2c884d18f708/sql-query-to-check-ms-office-service-pack-level?forum=configmgrreporting
    Best Regards,
    Joyce
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • I have an apple id for my ipod touch at home. My company is planning to issuing Ipads. Should I use the same apple id on the ipad for those apps I purchase and would like to purchase and use on my work ipad?

    I have an apple id for my ipod touch at home. My company is planning to issuing Ipads. Should I use the same apple id on the ipad for those apps I purchase and would like to use on my work ipad?

    Yes, otherwise you will have to pay for those apps again. If an app is purchased by one Apple ID, he/she will be able to redownload it again for no cost (note: this does apply to songs, but NOT to movies).

  • HT201088 I am considering starting Family Sharing.  Should I set up a new Apple ID for the Family Sharing or should I use my personal Apple ID?

    I am considering starting Family Sharing.  Should I set up a new Apple ID for Family Sharing or should I use my personal ID?

    On your Mac, try to access your gmail account. There should be a link you click for "Forgot My Password". Click it and try to retrieve your password.
     Cheers, Tom

  • Should we use same apple id for ipad and iphone

    i had bought a ipad, should i use the same Apple ID as per my iphone? or create a new one. if i use the same ID, howabout my i cloud storage will be remain 5GB or 10GB

    One possible use for separate Apple IDs is to have a separate ID associated with a particular device.  This could be important with iMessage or Facetime, because if you associate all your devices with one ID, you will receive iMessages or Facetime calls on all your devices simultaneously.  If you only want to do iMessage on your iPhone, for example, people could use the Apple ID associated with your iPhone, and the messages would not show up on your iPad.  Obviously, this could be a good thing or a bad thing, depending on how you like to work.
    For me, I have a single Apple ID, mainly because it is easier to keep track of my purchases and downloads.  I also prefer to receive messages and facetime calls on all my devices, so I can choose which one to respond from.

  • I have a family of 5 with 3 ipods an ipad and two iphones should we use separate apple id's ?

    I have 3 children with ipods and my wife an i have iphone as well as ipads. Should i use the same Apple ID for everyone so i can manage their accounts or will all accounts then have all my apps and contact or vice versa?

    Unless you want to share the same iMessages, cloud storage, music library-yes.

  • When creating a new DPS should I use sizes offered by InDesign or the display size of the device?

    Hello all,
    When creating a new DPS, should I use the sizes offered by InDesign or the display size of the device?  I ran into this question when I was looking up the sizes of different devices and found that iPhone 5s, iPhone5c, and iPhone4s sizes differ than the defauly dimensions offered by InDesign. 
    Also, should I worry about the ppi resolution?  With iPhone, they all seem to be 326ppi but when dealing with other devices is this something that I should take into consideration?  Ideally, I could be creating DPS apps for all devices offered in the Digital Publishing drop down in InDesign (iPhone, iPad, Kindle Fire/Nook, and Android).
    Thank you for any help you can provide.
    By the way, if it helps I am using InDesign CC.

    Using 1024x768 and creating PDF articles will get you OK with both iPad resolutions, and, as Bob L. says, quite decent "one size fits all" result for all other devices.

  • After upgrading from Mavericks to Yosemite I can no longer find in Mail the icon (looks like the Add To Contacts icon without the   mark) I used to press in order to obtain an e-mail address from my contact list. What procedure should I use now in or

    After yesterday upgrading from Mavericks to Yosemite I can no longer find in Mail the icon (looks like the Add To Contacts icon without the + mark) I used to press in order to obtain an e-mail address from my contact list. What procedure should I use now in order to quickly add an address to an e-mail that I wish to send?
    Bob

    On the right of the To: field you will see a circled plus sign:
    Click it.

  • Which external hard drive should I use to save my iTunes library?

    Hi,
    So I have collected so much music and movies in iTunes that my internal HD is practically full.  (Library is over 500GB of 1TB and the rest is taken up with my apps and programs.)  It's time to purchase an external hard drive to transfer my library to.  Furthermore, I currently have a 2TB WD My Book for Mac that I am currently using for backup.  The My Book is also full and Time Machine is deleting the oldest backups to make room for the current ones.
    Here is where I need everyones advice.  I am planning on purchasing a 3TB WD My Book for Mac.  I am planning on purchasing more movies for iTunes.  Which external hard drive should I use for what?  Option A or B
    Option A:  Put my iTunes library on the 2TB external hard drive and use the 3TB for backup
    Option B:  Put my iTunes library on the 3TB external hard drive and continue to use the 2TB for backup
    Also please give me your reasoning.
    Thanks everyone for your responses!

    Limnos,
    So, let's go one step further with this.  I read your reply to moving iTunes library to an external hard drive: https://discussions.apple.com/thread/4594518?tstart=0  However, if I move the iTunes library, will this include all the movies and apps that I have purchased?
    Thanks!!!!

Maybe you are looking for