I know there's plenty ways of enumerating computers and devices on a network, but how do I show just computers available for Windows file sharing? I need to provide a tree view of network computers and their shared folders. I know I could use existing shell controls for this, but I would rather keep it in my own tree view. It will only list those computers on the network which have shared folders. Past the computers and their shared folders, I can do the individual directory listing part myself. I just need to know how to get the computer list and their shared folder lists.
相关问题
- Is there a Delphi 5 component that can handle .png
- Is there a way to install Delphi 2010 on Windows 2
- Is TWebBrowser dependant on IE version?
- iOS objective-c object: When to use release and wh
- DBGrid - How to set an individual background color
相关文章
- C# WinForm TreeView 怎么做半透明或者透明背景?
- Sort TreeView Automatically Upon Adding Nodes
- Best way to implement MVVM bindings (View <-> V
- Windows EventLog: How fast are operations with it?
- How to force Delphi compiler to display all hints
- Coloring cell background on firemonkey stringgrid
- HelpInsight documentation in Delphi 2007
- Can RTTI interrogate types from project code at de
WNetOpenEnum will give you all the computers on the network
NetShareEnum will you all shares on a machine.
You can use the combination of both to filter out what you don't want
Please consider the following resources if you are interested in sample Delphi code using WNetOpenEnum/WNetOpenEnum Windows API:
Having a good command of NETRESOURCE structure is also must.
I personnaly recommend the following listings from http://www.developpez.net's Forum:
Listing #1:
Listing #2:
Source: Liste des machines sur un réseau local (tout le réseau de Win) - Original post (in French) by Lucas Panny.