Esempio n. 1
0
 /// <summary>Returns the length, in bytes, of a valid security identifier (SID).</summary>
 /// <param name="pSid">A pointer to the SID structure whose length is returned. The structure is assumed to be valid.</param>
 /// <returns>
 /// If the SID structure is valid, the return value is the length, in bytes, of the SID structure. If the SID structure is not valid,
 /// the return value is 0.
 /// </returns>
 public static int Length(this PSID pSid) => AdvApi32.IsValidSid(pSid) ? AdvApi32.GetLengthSid(pSid) : 0;