C# Class LECommonLibrary.SystemHelper

Show file Open project: xupefei/Locale-Emulator Class Usage Examples

Public Methods

Method Description
CheckPermission ( string path ) : bool
DisableDPIScale ( ) : void
EnsureAbsolutePath ( string path ) : string
Is4KDisplay ( ) : bool
Is64BitOS ( ) : bool
IsAdministrator ( ) : bool
RedirectToWow64 ( string path ) : string
RunWithElevatedProcess ( string executable, string args ) : void

RunWithElevatedProcess

Private Methods

Method Description
DoesWin32MethodExist ( string moduleName, string methodName ) : bool
GetCurrentProcess ( ) : IntPtr
GetDeviceCaps ( IntPtr hDC, int nIndex ) : int
GetModuleHandle ( string moduleName ) : IntPtr
GetProcAddress ( IntPtr hModule, [ procName ) : IntPtr
IsWow64Process ( IntPtr hProcess, bool &wow64Process ) : bool
SetProcessDPIAware ( ) : bool
ShellExecuteEx ( SHELLEXECUTEINFO &lpExecInfo ) : bool

Method Details

CheckPermission() public static method

public static CheckPermission ( string path ) : bool
path string
return bool

DisableDPIScale() public static method

public static DisableDPIScale ( ) : void
return void

EnsureAbsolutePath() public static method

public static EnsureAbsolutePath ( string path ) : string
path string
return string

Is4KDisplay() public static method

public static Is4KDisplay ( ) : bool
return bool

Is64BitOS() public static method

public static Is64BitOS ( ) : bool
return bool

IsAdministrator() public static method

public static IsAdministrator ( ) : bool
return bool

RedirectToWow64() public static method

public static RedirectToWow64 ( string path ) : string
path string
return string

RunWithElevatedProcess() public static method

RunWithElevatedProcess
Run error.
public static RunWithElevatedProcess ( string executable, string args ) : void
executable string
args string
return void