|
Local Group Functions
A local group is a set of users who share common permissions in the security
database. A local group can have members that are either users or global groups
(global groups can contain only users). The local group functions control
members of local groups in a way that can only be used locally on the system on
which the local group is defined. On a Windows NT Workstation or a Windows NT
non-DC server, you can use only a local group defined on that system. On a Windows
NT Domain Controller, a local group defined on the Primary Domain Controller is
replicated to all other domain controllers in the domain; as such, you can use
such a local group on any domain controller in the domain.The local group
functions create or delete local groups, and review or adjust the memberships of
local groups. The local group functions are:
NetLocalGroupAdd
NetLocalGroupAddMembers
NetLocalGroupDel
NetLocalGroupDelMember
NetLocalGroupDelMembers
NetLocalGroupEnum
NetLocalGroupGetInfo
NetLocalGroupGetMembers
NetLocalGroupSetInfo
NetLocalGroupSetMembers
A member can be added to a local group by specifying the security identifier
(SID) of the member. The LookupAccountName function can be used to translate a member account name to a SID.
To create a local group, an application calls NetLocalGroupAdd, supplying a local group name. Initially, the local group has no members. To
assign members to the local group, call NetLocalGroupSetMembers. To add a member to an existing local group, call NetLocalGroupAddMembers. To set general information about the local group, call NetLocalGroupSetInfo.
The NetLocalGroupDelMember function deletes a specified member from a local group, and NetLocalGroupDel disbands a local group, deleting all existing members of the local group
first.
Three local group functions retrieve information about the local groups on a
server: NetLocalGroupEnum produces a list of all local groups; NetLocalGroupGetMembers lists all members of a specified local group; and NetLocalGroupGetInfo returns general information about the local group.
Group account information is available at three levels:
LOCALGROUP_INFO_0
LOCALGROUP_INFO_1
LOCALGROUP_INFO_1002
Members of a local group can be identified at four information levels:
LOCALGROUP_MEMBERS_INFO_0
LOCALGROUP_MEMBERS_INFO_1
LOCALGROUP_MEMBERS_INFO_2
LOCALGROUP_MEMBERS_INFO_3
The users that belong to a local group can be obtained at one information
level:
LOCALGROUP_USERS_INFO_0
For NetLocalGroupSetInfo, parmnum values refer to the members of the LOCALGROUP_INFO structure as follows. These values are used when indicating an error in a
specific parameter through parm_err.
parmnum value
| Member in group_info structure
| LOCALGROUP_NAME_PARMNUM
| lgrpi_name
| LOCALGROUP_COMMENT_PARMNUM
| lgrpi_comment
|
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|