C# 클래스 Dev2.Impersonator

상속: IDisposable
파일 보기 프로젝트 열기: Warewolf-ESB/Warewolf 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void
Impersonate ( string userName, string domain, string password ) : bool
RunAs ( string userName, string domain, string password, System.Action action ) : bool
Undo ( ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
CloseHandle ( IntPtr handle ) : bool
DuplicateToken ( IntPtr hToken, int impersonationLevel, IntPtr &hNewToken ) : int
LogonUser ( string lpszUsername, string lpszDomain, string lpszPassword, int dwLogonType, int dwLogonProvider, IntPtr &phToken ) : bool
RevertToSelf ( ) : bool

메소드 상세

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Impersonate() 공개 메소드

public Impersonate ( string userName, string domain, string password ) : bool
userName string
domain string
password string
리턴 bool

RunAs() 공개 정적인 메소드

public static RunAs ( string userName, string domain, string password, System.Action action ) : bool
userName string
domain string
password string
action System.Action
리턴 bool

Undo() 공개 메소드

public Undo ( ) : void
리턴 void