Computer name, domain, user names,...

  • Thread starter Thread starter Ondrej Sevecek
  • Start date Start date
O

Ondrej Sevecek

Hello,
there were Win32 API functions suchs as GetComputerName(), GetUserName(),
NetUserEnum(), NetDomainEnum(), ...
Where are those functions available through .NET framework?

Ondra.
 
Environment.MachineName Environment.Username, Environment.UserDomainName

HTH,

Bill
 
what about FULL DNS name of the user?

Onda.


William Ryan said:
Environment.MachineName Environment.Username, Environment.UserDomainName

HTH,

Bill
 
Or through platform invoke. Check DllImport and related topics how to
declare and use Win32 API in .Net

HTH
Alex
 
Take a look at the DirectoryServices namespace classes.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top