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?
gaidar - 23 Apr 2005 10:45 GMT
You'd better use WMI. (See in MSDN Windows Management Instrumentation).
> I'm attempting to write an ASP.NET page which will list PCs that have
> users
[quoted text clipped - 5 lines]
> .NET counterpart of the NetLocalGroupGetMembers function from the
> Netapi32.dll?
gaidar - 23 Apr 2005 10:48 GMT
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);
> I'm attempting to write an ASP.NET page which will list PCs that have
> users
[quoted text clipped - 5 lines]
> .NET counterpart of the NetLocalGroupGetMembers function from the
> Netapi32.dll?