L
logjam
I'm looking for a way to compare two SIDs: the primary SID being a user
SID, and the secondary SID being either a user or group SID. So, if the
secondary SID is a group, I need to know if the primary SID is a member
of that group.
I've thought about using CheckTokenMembership(), but I don't have a
handle to an access token! Furthermore, I do not know how to get one
without creating a thread or process, because (1) I don't have the
passwords for either SID to use LogonUser(), and (2) I do not wish to
create a process/thread for the mere sake of checking SID
relationships.
If anyone could at least point in me in the right direction, this would
be appreciated. Thank you.
SID, and the secondary SID being either a user or group SID. So, if the
secondary SID is a group, I need to know if the primary SID is a member
of that group.
I've thought about using CheckTokenMembership(), but I don't have a
handle to an access token! Furthermore, I do not know how to get one
without creating a thread or process, because (1) I don't have the
passwords for either SID to use LogonUser(), and (2) I do not wish to
create a process/thread for the mere sake of checking SID
relationships.
If anyone could at least point in me in the right direction, this would
be appreciated. Thank you.