C# Class Tup.Utilities.ProcessHelper

进程处理/Process Helper
Afficher le fichier Open project: tupunco/Tup.Utilities

Méthodes publiques

Méthode Description
ExecuteAction ( string startFileName, string startFileArg, Action msgAction, ActionStop stopAction = null, bool showWindow = false ) : bool

Execute Command Action

KillCurrentProcess ( ) : void

Kill CurrentProcess

ProcessStart ( string startFileName, string startFileArg = null ) : bool

Process Start

Private Methods

Méthode Description
AttachConsole ( int dwProcessId ) : bool
FreeConsole ( ) : bool
GenerateConsoleCtrlEvent ( int dwCtrlEvent, int dwProcessGroupId ) : bool
SetConsoleCtrlHandler ( IntPtr handlerRoutine, bool add ) : bool
StopProcess ( Process p ) : void

功能: 停止录制

Method Details

ExecuteAction() public static méthode

Execute Command Action
public static ExecuteAction ( string startFileName, string startFileArg, Action msgAction, ActionStop stopAction = null, bool showWindow = false ) : bool
startFileName string
startFileArg string
msgAction Action
stopAction ActionStop
showWindow bool
Résultat bool

KillCurrentProcess() public static méthode

Kill CurrentProcess
public static KillCurrentProcess ( ) : void
Résultat void

ProcessStart() public static méthode

Process Start
public static ProcessStart ( string startFileName, string startFileArg = null ) : bool
startFileName string
startFileArg string
Résultat bool