Solved

Using Delphi 6, how to programmatically read/add/remove a name to the allowed list of users in Remote Desktop in Windows XP?

Posted on 2012-03-19
3
706 Views
Last Modified: 2012-03-23
Or better still, how to interface to the Remote Desktop?

I want to be able to set the checkbox "Allow users to connect to this computer".

If it is allowed to access, how to programmatically read/add/remove a name to the allowed list of users in Remote Desktop in Windows XP?

Using Delphi 6 only.
RDP.bmp
0
Comment
Question by:sepknow
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 37740551
There are Windows tools that can do that.

Why do you want to do it from a Delphi program?

mlmcc
0
 
LVL 27

Expert Comment

by:Sinisa Vuk
ID: 37741133
With Tregistry class you can add/remove MRU values under key:

HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default

and

HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers
0
 
LVL 19

Accepted Solution

by:
Thommy earned 500 total points
ID: 37741532
Programmatically set following registry key from your Delphi Programm:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\fDenyTSConnections

0 = Connection allowed,
1 = Connection not allowed

An introduction to working with Windows Registry
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is about my first experience with programming Arduino.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question