none
rdpencom pause icon RRS feed

  • Question

  • Hello there. I did the screen sharing application with rdpencom. No problems while logged in between client and server. The computers in my office network are under domain-dependent domain. Clients log on with limited privileges. When I connect to rdpencom client and change user or user lock screen with Windos + L key, black screen becomes pause icon. Because I only know the password for the Administrator session, I cannot intervene remotely. What should I do for screen sharing in any case.
    • Moved by CoolDadTx Monday, June 10, 2019 2:35 PM Third party product
    Saturday, June 8, 2019 2:41 PM

All replies

  • using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using RDPCOMAPILib;
    using AxMSTSCLib;
    using System.Runtime.InteropServices;
    
    namespace Sunucu
    {
        public partial class Form1 : Form
        {
    
            public static RDPSession currentSession = null;
            public static void createSession()
            {
                currentSession = new RDPSession();
            }
    
            public static void Connect(RDPSession session)
            {
                session.OnAttendeeConnected += Incoming;
                session.Open();
            }
    
            public static void Disconnect(RDPSession session)
            {
                session.Close();
            }
    
            public static string getConnectionString(RDPSession session, String authString,
                string group, string password, int clientLimit)
            {
                IRDPSRAPIInvitation invitation =
                    session.Invitations.CreateInvitation
                    (authString, group, password, clientLimit);
                return invitation.ConnectionString;
            }
    
            private static void Incoming(object Guest)
            {
                IRDPSRAPIAttendee MyGuest = (IRDPSRAPIAttendee)Guest;
                MyGuest.ControlLevel = CTRL_LEVEL.CTRL_LEVEL_INTERACTIVE;
            }
    
            /// <summary>
            /// Handle the form items
            /// </summary>
            public Form1()
            {
                InitializeComponent();
            }
    
            private void button1_Click(object sender, EventArgs e)
            {
                createSession();
                Connect(currentSession);
                textConnectionString.Text = getConnectionString(currentSession,
                    "Test", "Group", "", 5);
            }
    
            private void button2_Click(object sender, EventArgs e)
            {
                Disconnect(currentSession);
            }
        }
    }
    

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using RDPCOMAPILib;
    using AxRDPCOMAPILib;
    
    namespace Client
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            public static void Connect(string invitation, AxRDPViewer display, string userName, string password)
            {
                display.Connect(invitation, userName, password);
            }
    
            public static void disconnect(AxRDPViewer display)
            {
                display.Disconnect();
            }
    
            private void button1_Click(object sender, EventArgs e)
            {
                try
                {
                    Connect(textConnectionString.Text, this.axRDPViewer1, "", "");
                }
                catch (Exception)
                {
                    MessageBox.Show("Unable to connect to the Server");
                }
            }
        }
    }
    

    Saturday, June 8, 2019 6:01 PM
  • Hi 43Salih43,

    Thank you for posting here.

    I noted that you used RDPCOMAPILib and AxMSTSCLib, it is a third-party product. Therefore, I suggest that you could post in the following link.

    https://csharpforums.net/forums/third-party-products.89/

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Note:This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, June 10, 2019 6:26 AM