/// <summary> /// Enable a single privilege on the process. /// </summary> /// <param name="privilege"></param> /// <exception cref=""> /// Throws an exception if the privilege is not present /// in the privilege list of the process /// </exception> public void EnablePrivilege(TokenPrivilege privilege) { var privs = new TokenPrivileges { privilege }; EnableDisablePrivileges(privs); }
/// <summary> /// Enable a single privilege on the process. /// </summary> /// <param name="privilege"></param> /// <exception cref=""> /// Throws an exception if the privilege is not present /// in the privilege list of the process /// </exception> public void EnablePrivilege(TokenPrivilege privilege) { var privs = new TokenPrivileges { privilege }; EnableDisablePrivileges(privs); }
public void Add(TokenPrivilege privilege) { InnerList.Add(privilege); }
public void Add(TokenPrivilege privilege) => InnerList.Add(privilege);