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
699 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
3 Comments
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
There are Windows tools that can do that.

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

mlmcc
0
 
LVL 25

Expert Comment

by:Sinisa Vuk
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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 …

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now