Enumerate Domain

  • Thread starter Thread starter Jeff Grundy
  • Start date Start date
Hello Jeff,

Thanks for your post. You can take a look at Network Management Functions.
For example, calling NetGetJoinInformation to get a computer's domain name,
and NetShareEnum() to enumerate the shares of a machine.

Network Management Functions
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/net
mgmt/network_management_functions.asp

Since they are unmanaged APIs, you may use P/Invoke to call them from
within your .NET managed application:
Consuming Unmanaged DLL Functions
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconconsumingunmanageddllfunctions.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top