/// <summary>
        /// Remove a SID to name mapping with LSA.
        /// </summary>
        /// <param name="sid">The SID to remove.</param>
        /// <returns>The NT status result.</returns>
        public static void RemoveSidNameMapping(Sid sid)
        {
            SidName name = sid.GetName();

            RemoveSidNameMapping(name.Domain, name.NameUse == SidNameUse.Domain ? string.Empty : name.Name, true);
        }