开发者

RDP Console Shadow in C#

开发者 https://www.devze.com 2023-04-11 02:18 出处:网络
I\'m writ开发者_JS百科ing an application with MSTSCLib to control 4 computers with Windows 7 or Windows 2008 Server.

I'm writ开发者_JS百科ing an application with MSTSCLib to control 4 computers with Windows 7 or Windows 2008 Server.

This my app:

RDP Console Shadow in C#

public AxMSTSCLib.AxMsRdpClient6 rdp;

rdp.Server = txtServer.Text;
rdp.UserName = txtUserName.Text;

IMsTscNonScriptable secured = (IMsTscNonScriptable)rdp.GetOcx();
secured.ClearTextPassword = txtPassword.Text;

rdp.DesktopHeight = 1024;
rdp.DesktopWidth = 1280;
rdp.Connect();

These 4 computers, control 4 power generators.

I need to control from an office computer and keep alive the session, so that anyone can use these computers, physically and remotely. I mean, if I move the mouse remotely, the person who is physically in the computer, see that the mouse moves.

My current situation is that my application connects to the remote machine, but blocks the session to another person. (The session has been blocked, press CTRL + ALT-DEL)

Searching Google, I think what I need is something called "Remote Session Shadowing." Is this correct?

How I can do this with C#?

I found an interesting information here, can be done with MSTSCLib?


I would steer away from RDP, and go with some open source solution such as TightVNC, please look at:

http://www.tightvnc.com/licensing.php

VNC has your desired feature by design.


Unfortunatly it seems like it is no longer possible to "share" a session with RDP, most likely because of license sharing prevention measures.

This means it is no longer possible to log "into a running session" (user already logged in) without logging the other one off.

It was possible in XP, but its gone with 7 (and i'd guess server 2008 too).

You might want to look at Windows Remote Assistance because thats the only option available left which is built into the OS.

Besides VNC you can also check out TeamViewer, which, i have heard, works great. I am not sure if there is an API available though.

0

精彩评论

暂无评论...
验证码 换一张
取 消