Unit mseprocutils

Description

 

Overview

Classes, Interfaces, Objects and Records

Name Description
Record pipedescriptorty  
Class eexecerror  

Functions and Procedures

function getprocessexitcode(prochandle: prochandlety; out exitcode: integer; const timeoutus: integer = 0): processexiterrorty;
function waitforprocess(prochandle: prochandlety): integer;
function execmse(const commandline: msestring; const options: execoptionsty = []; const workingdirectory: filenamety = ''; const params: msestringarty = nil; const envvars: msestringarty = nil): boolean;
function execmse4(const commandline: msestring; const options: execoptionsty = []; const workingdirectory: filenamety = ''; const params: msestringarty = nil; const envvars: msestringarty = nil): prochandlety;
function execmse1(const commandline: msestring; topipe: pinteger = nil; frompipe: pinteger = nil; errorpipe: pinteger = nil; groupid: integer = -1; const options: execoptionsty = []; frompipewritehandle: pinteger = nil; errorpipewritehandle: pinteger = nil; const workingdirectory: filenamety = ''; const params: msestringarty = nil; const envvars: msestringarty = nil): prochandlety;
function execmse2(const commandline: msestring; topipe: tpipewriter = nil; frompipe: tpipereader = nil; errorpipe: tpipereader = nil; groupid: integer = -1; const options: execoptionsty = []; const workingdirectory: filenamety = ''; const params: msestringarty = nil; const envvars: msestringarty = nil): prochandlety;
function execmse3(const commandline: msestring; topipe: pinteger = nil; frompipe: pinteger = nil; errorpipe: pinteger = nil; groupid: integer = -1; const options: execoptionsty = []; frompipewritehandle: pinteger = nil; errorpipewritehandle: pinteger = nil; const workingdirectory: filenamety = ''; const params: msestringarty = nil; const envvars: msestringarty = nil): prochandlety;
function execwaitmse(const commandline: msestring; const options: execoptionsty = []; const workingdirectory: filenamety = ''; const params: msestringarty = nil; const envvars: msestringarty = nil): integer; overload;
procedure killprocess(handle: prochandlety);
procedure killprocesstree(handle: prochandlety);
function terminateprocess(handle: prochandlety): integer;
procedure killprocessid(id: procidty);
procedure killprocesstreeid(id: procidty);
function getpid: procidty;
function getprocesstree: procitemarty;
function getprocesschildren(const pid: procidty): procidarty;
function getallprocesschildren(const pid: procidty): procidarty;
function pipe(out desc: pipedescriptorty; write: boolean): boolean;

Types

execoptionty = (...);
execoptionsty = set of execoptionty;
processexiterrorty = (...);

Constants

pipewritehandlemask = [exo_usepipewritehandles ];

Description

Functions and Procedures

function getprocessexitcode(prochandle: prochandlety; out exitcode: integer; const timeoutus: integer = 0): processexiterrorty;
 
function waitforprocess(prochandle: prochandlety): integer;
 
function execmse(const commandline: msestring; const options: execoptionsty = []; const workingdirectory: filenamety = ''; const params: msestringarty = nil; const envvars: msestringarty = nil): boolean;
 
function execmse4(const commandline: msestring; const options: execoptionsty = []; const workingdirectory: filenamety = ''; const params: msestringarty = nil; const envvars: msestringarty = nil): prochandlety;
 
function execmse1(const commandline: msestring; topipe: pinteger = nil; frompipe: pinteger = nil; errorpipe: pinteger = nil; groupid: integer = -1; const options: execoptionsty = []; frompipewritehandle: pinteger = nil; errorpipewritehandle: pinteger = nil; const workingdirectory: filenamety = ''; const params: msestringarty = nil; const envvars: msestringarty = nil): prochandlety;
 
function execmse2(const commandline: msestring; topipe: tpipewriter = nil; frompipe: tpipereader = nil; errorpipe: tpipereader = nil; groupid: integer = -1; const options: execoptionsty = []; const workingdirectory: filenamety = ''; const params: msestringarty = nil; const envvars: msestringarty = nil): prochandlety;
 
function execmse3(const commandline: msestring; topipe: pinteger = nil; frompipe: pinteger = nil; errorpipe: pinteger = nil; groupid: integer = -1; const options: execoptionsty = []; frompipewritehandle: pinteger = nil; errorpipewritehandle: pinteger = nil; const workingdirectory: filenamety = ''; const params: msestringarty = nil; const envvars: msestringarty = nil): prochandlety;
 
function execwaitmse(const commandline: msestring; const options: execoptionsty = []; const workingdirectory: filenamety = ''; const params: msestringarty = nil; const envvars: msestringarty = nil): integer; overload;
 
procedure killprocess(handle: prochandlety);
 
procedure killprocesstree(handle: prochandlety);
 
function terminateprocess(handle: prochandlety): integer;
 
procedure killprocessid(id: procidty);
 
procedure killprocesstreeid(id: procidty);
 
function getpid: procidty;
 
function getprocesstree: procitemarty;
 
function getprocesschildren(const pid: procidty): procidarty;
 
function getallprocesschildren(const pid: procidty): procidarty;
 
function pipe(out desc: pipedescriptorty; write: boolean): boolean;
 

Types

execoptionty = (...);
 
Values
  • exo_shell
  • exo_noshell
  • exo_inactive
  • exo_nostdhandle
  • exo_newconsole
  • exo_nowindow
  • exo_detached
  • exo_allowsetforegroundwindow
  • exo_sessionleader
  • exo_settty
  • exo_tty
  • exo_echo
  • exo_icanon
  • exo_usepipewritehandles
  • exo_winpipewritehandles
execoptionsty = set of execoptionty;
 
processexiterrorty = (...);
 
Values
  • pee_ok
  • pee_signaled
  • pee_timeout
  • pee_error

Constants

pipewritehandlemask = [exo_usepipewritehandles ];
 

Generated by PasDoc 0.16.0.