define the dosexecpgm functions used in the


Define the DosExecPgm Functions used in the OS/2

DosExecPgm (objBuffer, objLen, flags, cmdLine, env, &resultCode, execName)

DosExecPgm function is designed to load an executable image as a child process. An object buffer and its length (objBuffer and objLen respectively) may be specified to receive return information from an unsuccessful exec of the process. The flags parameter specifies optional execution characteristics of the newly created process.

The process may be executed asynchronously or synchronously to the parent process or like a background process. An optional command line (cmdLine) and environment (env) may be passed to the child process. In env is NULL, the child process inherits the parent's environment. A resultCode will be retuned upon completion of the exec. If the child process is asynchronously exceeded successfully, the first ULONG of the resultCode structure will contain the process ID of the new process. The name of the executable image to load is passed last as the execName parameter.

Request for Solution File

Ask an Expert for Answer!!
Operating System: define the dosexecpgm functions used in the
Reference No:- TGS0289583

Expected delivery within 24 Hours