Win32 account SID lookup if user and group have the same name?

Dan Shelton dan.f.shelton@gmail.com
Tue Feb 13 01:12:48 GMT 2024


Hello!

How can I get the SID for either user XOR group if both have the same
name? Remember Cygwin, as Unix and Linux, allow that a user "danfsh"
can have his own group "danfsh". That works fine there, but on Win32
there is only LookupAccountSidA() which has no way to distinguish
whether you want a user SID or a group SID.

How can I get the SID for group "danfsh", or the SID for user "danfsh"?

Dan
-- 
Dan Shelton - Cluster Specialist Win/Lin/Bsd


More information about the Cygwin mailing list