LSA_TRANSLATED_SID

The LSA_TRANSLATED_SID structure is used with the LsaLookupNames function to return information about the Security Identifier (SID) that identifies an account.

 typedef struct {
  SID_NAME_USE  Use;
  ULONG RelativeId;
  LONG DomainIndex;
} LSA_TRANSLATED_SID, 
 *PLSA_TRANSLATED_SID;
 

Members

  • Use
    A value from the SID_NAME_USE enumeration type that identifies the type of SID. If Use has one of the following values, one or both of the RelativeId or DomainIndex members of LSA_TRANSLATED_SID is invalid. These members are valid if Use has any other value.

    Value Meaning
    SidTypeDomain
    3

    The DomainIndex member is valid, but the RelativeId member is not valid and must be ignored.

    SidTypeInvalid
    7

    Both DomainIndex and RelativeId are invalid and must be ignored.

    SidTypeUnknown
    8

    Both DomainIndex and RelativeId members are invalid and must be ignored.

  • RelativeId
    Specifies the Relative Identifier (RID) of the account's SID. The RID identifies the account relative to the domain referenced by the DomainIndex member. The account's complete SID consists of the domain SID followed by the RID.

  • DomainIndex
    Specifies the zero-based index of an entry in the LSA_REFERENCED_DOMAIN_LIST structure returned by the LsaLookupNames function. This entry contains the name and SID of the domain in which the account was found.

    If there is no corresponding domain for an account, this member contains a negative value.