C# Класс Tup.Utilities.ProcessHelper

进程处理/Process Helper
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
AttachConsole ( int dwProcessId ) : bool
FreeConsole ( ) : bool
GenerateConsoleCtrlEvent ( int dwCtrlEvent, int dwProcessGroupId ) : bool
SetConsoleCtrlHandler ( IntPtr handlerRoutine, bool add ) : bool
StopProcess ( Process p ) : void

功能: 停止录制

Описание методов

ExecuteAction() публичный статический Метод

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
Результат bool

KillCurrentProcess() публичный статический Метод

Kill CurrentProcess
public static KillCurrentProcess ( ) : void
Результат void

ProcessStart() публичный статический Метод

Process Start
public static ProcessStart ( string startFileName, string startFileArg = null ) : bool
startFileName string
startFileArg string
Результат bool