.NET User Manager

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm attempting to write an ASP.NET page which will list PCs that have users
assigned to the local Administrator group. I have found the tool that I need.
Unfortunately, it is an API and I can not wrap my brain around how to use
APIs. Can someone give me a complete explanation of APIs or, even better, a
..NET counterpart of the NetLocalGroupGetMembers function from the
Netapi32.dll?
 
You'd better use WMI. (See in MSDN Windows Management Instrumentation).
 
About WinAPI.

You need import an unmanaged function and make arguments to match .NET
types, for example:

[DllImport("User32.dll")]
static extern Boolean MessageBeep(UInt32 beepType);
 

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