Éric Moreau
asked on
NT users accounts and groups
Using API, I know how to retrieve UserName, FullName and Description from the UserManager applet. But what I need to know now is to which groups they belong to.
Use NetGroupGetInfo it works the same way for users...
NetGroupGetInfo
The NetGroupGetInfo function retrieves information about a particular global group in the security database.
NET_API_STATUS NetGroupGetInfo(
LPCWSTR servername,
LPCWSTR groupname,
DWORD level,
LPBYTE *bufptr
);
See Also
Network Management Overview, Network Management Functions, Group Functions, GROUP_INFO_0, GROUP_INFO_1, GROUP_INFO_2, NetGroupSetInfo, NetApiBufferFree
NetGroupGetInfo
The NetGroupGetInfo function retrieves information about a particular global group in the security database.
NET_API_STATUS NetGroupGetInfo(
LPCWSTR servername,
LPCWSTR groupname,
DWORD level,
LPBYTE *bufptr
);
See Also
Network Management Overview, Network Management Functions, Group Functions, GROUP_INFO_0, GROUP_INFO_1, GROUP_INFO_2, NetGroupSetInfo, NetApiBufferFree
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'll check that tonight and will come back!
ASKER
Thank you danelroisman!
I'm always happy to help you.
http://www.netfokus.dk/vbadmincode/codevb.html