public PsProtection(PsProtectedType type, PsProtectedSigner signer, bool audit) { level = (byte)((int)type | (audit ? 0x8 : 0) | ((int)signer << 4)); }
public PsProtection(PsProtectedType type, PsProtectedSigner signer) : this(type, signer, false) { }
/// <summary> /// Set protected process protection level. /// </summary> /// <param name="type">The type of protected process.</param> /// <param name="signer">The signer level.</param> public void AddProtectionLevel(PsProtectedType type, PsProtectedSigner signer) { ProtectionLevel = new PsProtection(type, signer, false); }
public static ProcessAttribute ProtectionLevel(PsProtectedType type, PsProtectedSigner signer, bool audit) { PsProtection protection = new PsProtection(type, signer, audit); return(new ProcessAttribute(ProcessAttributeNum.ProtectionLevel, false, true, true, new IntPtr(protection.Level), 1, IntPtr.Zero)); }
public static ProcessAttribute ProtectionLevel(PsProtectedType type, PsProtectedSigner signer, bool audit) { return(ProtectionLevel(new PsProtection(type, signer, audit))); }
/// <summary> /// Added protected process protection level. /// </summary> /// <param name="type">The type of protected process.</param> /// <param name="signer">The signer level.</param> public void AddProtectionLevel(PsProtectedType type, PsProtectedSigner signer) { AdditionalAttributes.Add(ProcessAttribute.ProtectionLevel(type, signer, false)); }
public static ProcessAttribute ProtectionLevel(PsProtectedType type, PsProtectedSigner signer, bool audit) { return(new ProcessAttribute(ProcessAttributeNum.ProtectionLevel, false, true, true, new PsProtection(type, signer, audit).ToBuffer())); }