Please help me to solve the following problem:

I need an API Function that gives me all the computer names from a network or workgroup.

Thank you
Razvan.