C# Class Tup.Utilities.ProcessHelper

进程处理/Process Helper
Exibir arquivo Open project: tupunco/Tup.Utilities

Public Methods

Method 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

Method 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 method

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
return bool

KillCurrentProcess() public static method

Kill CurrentProcess
public static KillCurrentProcess ( ) : void
return void

ProcessStart() public static method

Process Start
public static ProcessStart ( string startFileName, string startFileArg = null ) : bool
startFileName string
startFileArg string
return bool