C# 클래스 MGDF.GamesManager.Model.UACControl

파일 보기 프로젝트 열기: mrsharpoblunto/MGDF

공개 메소드들

메소드 설명
AddShieldToButton ( Button b ) : void

Add a shield icon to a button

IsAdmin ( ) : bool

Checks if the process is elevated

IsUacEnabled ( ) : bool
IsVistaOrHigher ( ) : bool
RestartElevated ( string arguments ) : void

Restart the current process with administrator credentials

비공개 메소드들

메소드 설명
GetTokenInformation ( IntPtr TokenHandle, TOKEN_INFORMATION_CLASS TokenInformationClass, IntPtr TokenInformation, uint TokenInformationLength, uint &ReturnLength ) : bool
OpenProcessToken ( IntPtr ProcessHandle, UInt32 DesiredAccess, IntPtr &TokenHandle ) : bool
SendMessage ( IntPtr hWnd, UInt32 msg, UInt32 wParam, UInt32 lParam ) : UInt32

메소드 상세

AddShieldToButton() 공개 정적인 메소드

Add a shield icon to a button
public static AddShieldToButton ( Button b ) : void
b System.Windows.Forms.Button The button
리턴 void

IsAdmin() 공개 정적인 메소드

Checks if the process is elevated
public static IsAdmin ( ) : bool
리턴 bool

IsUacEnabled() 공개 정적인 메소드

public static IsUacEnabled ( ) : bool
리턴 bool

IsVistaOrHigher() 공개 정적인 메소드

public static IsVistaOrHigher ( ) : bool
리턴 bool

RestartElevated() 공개 정적인 메소드

Restart the current process with administrator credentials
public static RestartElevated ( string arguments ) : void
arguments string
리턴 void