Solved

Select Computer dialogue box - which call?

Posted on 1997-04-21
3
153 Views
Last Modified: 2010-04-03
What is the API call for the "Select Computer" dialog, which can be found e.g. in the Registry Editor (Registry | Select Computer... from menu)?

I know there are API calls for connecting resources (disks/printers) over a network with WNetConnectionDialog and WNetDisconnectDialog, but that's not exactly what I'm looking for. There is a function called NetQueryDisplayInformation which I wonder is what I'm looking for, but I get 'Undeclared identifier:...' when I try using it.
0
Comment
Question by:freyrb
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
javiertb earned 100 total points
ID: 1335561
I suggest you to take a look at the Delphi Super Page where you'll find the BrowseFolder component that enables you to choose computers/directories and use UNC path-names. It's free.


0
 

Author Comment

by:freyrb
ID: 1335562
I found two browse components and tested them, and while they are very similar to what I'm looking for there still persist a small problem. One of these components (TBrowseDirectoryDlg) has the ability to "root" itself at the network level, and setting a selection of only computers is also possible. This is all good, but I found no way of getting the information from the dialog of *which* computer was selected. The OnSelChanged event returns an empty string when I select a computer (but a path when a directory is selected).
This is also the case with the other component, i.e. the selection string is empty when a computer is selected. So maybe its not the components that are the problem but the ShellObject unit. I myself use Delphi 2.0 (no upgrade), but the SHLOBJ.DCU comes with Delphi 2.01. I used a custom SHLOBJ replacement, which I understand is all right.
Bottom line is, and I repeat this, that I need to reproduce the dialog box that pops up e.g. in the Registry Editor.
0
 

Author Comment

by:freyrb
ID: 1335563
Adjusted points to 100
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

18 Experts available now in Live!

Get 1:1 Help Now