C# 클래스 Dev2.FileIO

파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf

공개 메소드들

메소드 설명
CheckPermissions ( System.Security.Principal.WindowsIdentity user, string path, FileSystemRights expectedRights ) : bool

Checks the permissions.

CheckPermissions ( string userAndDomain, string pass, string path, FileSystemRights rights ) : bool

Checks the permissions.

비공개 메소드들

메소드 설명
CloseHandle ( IntPtr handle ) : bool
ExtractDomain ( string path ) : string

Extracts the domain.

ExtractUserName ( string path ) : string

Extracts the name of the user.

LogonUser ( String lpszUsername, String lpszDomain, String lpszPassword, int dwLogonType, int dwLogonProvider, SafeTokenHandle &phToken ) : bool

메소드 상세

CheckPermissions() 공개 정적인 메소드

Checks the permissions.
public static CheckPermissions ( System.Security.Principal.WindowsIdentity user, string path, FileSystemRights expectedRights ) : bool
user System.Security.Principal.WindowsIdentity The user.
path string The path.
expectedRights FileSystemRights The expected rights.
리턴 bool

CheckPermissions() 공개 정적인 메소드

Checks the permissions.
Failed to authenticate with user [ + userAndDomain + ] for resource [ + path + ]
public static CheckPermissions ( string userAndDomain, string pass, string path, FileSystemRights rights ) : bool
userAndDomain string The user and domain.
pass string The pass.
path string The path.
rights FileSystemRights The rights.
리턴 bool