Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
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
Medium Priority
?
713 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 101

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 28

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 2000 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

610 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