Link to home
Start Free TrialLog in
Avatar of freyrb
freyrb

asked on

Select Computer dialogue box - which call?

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.
ASKER CERTIFIED SOLUTION
Avatar of javiertb
javiertb

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of freyrb
freyrb

ASKER

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.
Avatar of freyrb

ASKER

Adjusted points to 100