Re: How to obtain the group name for "Administrators"
From: Eugene Gershnik (gershnik_at_hotmail.com)
Date: 02/07/05
- Next message: softer: "RE: [P2P] PeerGroupAddRecord problem..."
- Previous message: Alexander Nickolov: "Re: WSAETIMEDOUT"
- In reply to: Harald: "How to obtain the group name for "Administrators""
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 7 Feb 2005 10:53:05 -0800
Harald wrote:
> Hi,
> depending on the OS language the Administrators group has different
> names. Some functions require the groups name as input. So I'd like
> to obtain the specific name of the Administrators group on the
> current machine. Any idea? Must have something to do with
> "DOMAIN_ALIAS_RID_ADMINS" or so... - Thanks, Harald
Use LsaLookupSids() or LookupAccountSid(). The SID for Administrators is
given in MSDN or you can use CreateWellKnownSid()
-- Eugene
- Next message: softer: "RE: [P2P] PeerGroupAddRecord problem..."
- Previous message: Alexander Nickolov: "Re: WSAETIMEDOUT"
- In reply to: Harald: "How to obtain the group name for "Administrators""
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|