static extern IntPtr OpenFileMapping(FileRights dwDesiredAccess, bool bInheritHandle, string lpName);
static extern IntPtr MapViewOfFile(IntPtr hFileMappingObject, FileRights dwDesiredAccess, uint dwFileOffsetHigh, uint dwFileOffsetLow, uint dwNumberOfBytesToMap);
public FileAccessRule(string identity, FileRights fileRights, AccessControlType type) : this(new NTAccount(identity), fileRights, type) { }
public FileAccessRule(IdentityReference identity, FileRights fileRights, AccessControlType type) : base(identity, (int)fileRights, false, InheritanceFlags.None, PropagationFlags.None, type) { }
/// <summary> /// Initializes a new instance of the <see cref="FileAuditRule"/> class. /// </summary> /// <param name="identity">The identity.</param> /// <param name="fileRights">The file rights.</param> /// <param name="type">The type.</param> public FileAuditRule(string identity, FileRights fileRights, AuditFlags type) : this(new NTAccount(identity), fileRights, type) { }
/// <summary> /// Initializes a new instance of the <see cref="FileAuditRule"/> class. /// </summary> /// <param name="identity">The identity.</param> /// <param name="fileRights">The file rights.</param> /// <param name="type">The type.</param> public FileAuditRule(IdentityReference identity, FileRights fileRights, AuditFlags type) : base(identity, (int)fileRights, false, InheritanceFlags.None, PropagationFlags.None, type) { }