C# Класс Abstractions.Windows.Security

Показать файл Открыть проект

Открытые методы

Метод Описание
GetNameFromSID ( System.Security.Principal.SecurityIdentifier sid ) : string
GetSIDFromName ( string name ) : System.Security.Principal.SecurityIdentifier
GetWellKnownName ( WellKnownSidType type ) : string
GetWellknownSID ( WellKnownSidType type ) : System.Security.Principal.SecurityIdentifier
RegSec ( pInvokes where, string keyname, string username ) : System.Boolean

apply registry security settings to user profiles

RemoveAccRuleFromUnknownUser ( string dir ) : System.Boolean

remove users who are unknown to the system from the directory acl

ReplaceDirectorySecurity ( string dir, IdentityReference Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean
ReplaceDirectorySecurity ( string dir, string Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean
ReplaceFileSecurity ( string File, IdentityReference Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean
ReplaceFileSecurity ( string File, string Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean
SetDirOwner ( string dir, IdentityReference Account ) : System.Boolean
SetDirOwner ( string dir, string Account ) : System.Boolean
SetDirectorySecurity ( string dir, IdentityReference Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean
SetDirectorySecurity ( string dir, string Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean
SetRecDirAttrib ( DirectoryInfo dir, FileAttributes attrib ) : System.Boolean

apply recursive attribute to directories and files

Описание методов

GetNameFromSID() публичный статический Метод

public static GetNameFromSID ( System.Security.Principal.SecurityIdentifier sid ) : string
sid System.Security.Principal.SecurityIdentifier
Результат string

GetSIDFromName() публичный статический Метод

public static GetSIDFromName ( string name ) : System.Security.Principal.SecurityIdentifier
name string
Результат System.Security.Principal.SecurityIdentifier

GetWellKnownName() публичный статический Метод

public static GetWellKnownName ( WellKnownSidType type ) : string
type WellKnownSidType
Результат string

GetWellknownSID() публичный статический Метод

public static GetWellknownSID ( WellKnownSidType type ) : System.Security.Principal.SecurityIdentifier
type WellKnownSidType
Результат System.Security.Principal.SecurityIdentifier

RegSec() публичный статический Метод

apply registry security settings to user profiles
public static RegSec ( pInvokes where, string keyname, string username ) : System.Boolean
where Abstractions.WindowsApi.pInvokes
keyname string
username string
Результат System.Boolean

RemoveAccRuleFromUnknownUser() публичный статический Метод

remove users who are unknown to the system from the directory acl
public static RemoveAccRuleFromUnknownUser ( string dir ) : System.Boolean
dir string
Результат System.Boolean

ReplaceDirectorySecurity() публичный статический Метод

public static ReplaceDirectorySecurity ( string dir, IdentityReference Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean
dir string
Account System.Security.Principal.IdentityReference
Rights FileSystemRights
ControlType AccessControlType
Inherit InheritanceFlags
Propagation PropagationFlags
Результат System.Boolean

ReplaceDirectorySecurity() публичный статический Метод

public static ReplaceDirectorySecurity ( string dir, string Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean
dir string
Account string
Rights FileSystemRights
ControlType AccessControlType
Inherit InheritanceFlags
Propagation PropagationFlags
Результат System.Boolean

ReplaceFileSecurity() публичный статический Метод

public static ReplaceFileSecurity ( string File, IdentityReference Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean
File string
Account System.Security.Principal.IdentityReference
Rights FileSystemRights
ControlType AccessControlType
Inherit InheritanceFlags
Propagation PropagationFlags
Результат System.Boolean

ReplaceFileSecurity() публичный статический Метод

public static ReplaceFileSecurity ( string File, string Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean
File string
Account string
Rights FileSystemRights
ControlType AccessControlType
Inherit InheritanceFlags
Propagation PropagationFlags
Результат System.Boolean

SetDirOwner() публичный статический Метод

public static SetDirOwner ( string dir, IdentityReference Account ) : System.Boolean
dir string
Account System.Security.Principal.IdentityReference
Результат System.Boolean

SetDirOwner() публичный статический Метод

public static SetDirOwner ( string dir, string Account ) : System.Boolean
dir string
Account string
Результат System.Boolean

SetDirectorySecurity() публичный статический Метод

public static SetDirectorySecurity ( string dir, IdentityReference Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean
dir string
Account System.Security.Principal.IdentityReference
Rights FileSystemRights
ControlType AccessControlType
Inherit InheritanceFlags
Propagation PropagationFlags
Результат System.Boolean

SetDirectorySecurity() публичный статический Метод

public static SetDirectorySecurity ( string dir, string Account, FileSystemRights Rights, AccessControlType ControlType, InheritanceFlags Inherit, PropagationFlags Propagation ) : System.Boolean
dir string
Account string
Rights FileSystemRights
ControlType AccessControlType
Inherit InheritanceFlags
Propagation PropagationFlags
Результат System.Boolean

SetRecDirAttrib() публичный статический Метод

apply recursive attribute to directories and files
public static SetRecDirAttrib ( DirectoryInfo dir, FileAttributes attrib ) : System.Boolean
dir System.IO.DirectoryInfo
attrib FileAttributes
Результат System.Boolean