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)); }
/// <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(PsProtection protection) { return(new ProcessAttribute(ProcessAttributeNum.ProtectionLevel, false, true, true, new IntPtr(protection.Level), 1, IntPtr.Zero)); }