: how can i use NetServerEnum in delphi ???
You can link to that function using the external reserved word. To do that you need to precisely translate the function definition from the help files into the Delphi language, including any support types it might need. Once you have done that, you can use it like any other Delphi function.