USER32 (located in \TOOLKIT\SAMPLES\LANSERV\USER32) is designed to access and control user account information. USER32 can display information about a user, delete a user, or create a new user. When a new user is created, USER32 creates a new alias, gives the user access to it, and makes it a logon assignment for the user; creates a new group and adds the user to it; creates a private application definition and assigns that too to the user.
USER32 demonstrates how to use the following NetAPI functions:
Net32AccessAdd
Net32AccessGetInfo
Net32AccessSetInfo
Net32AliasAdd
Net32AliasDel
Net32AliasGetInfo
Net32AppAdd
Net32GetDCName
Net32GroupAdd
Net32GroupAddUser
Net32GroupDel
Net32GroupGetInfo
Net32ServerEnum2
Net32WkstaGetInfo
Net32UserAdd
Net32UserDCDBInit
Net32UserDel
Net32UserGetGroups
Net32UserGetInfo
Net32UserGetLogonAsn
Net32UserSetAppSel
Net32UserSetLogonAsn
NetStatisticsGet2 retrieves information from both the requester and the server portions of a server machine. Note that these two sets of information, even when they are in the same machine, are quite different.