DosExecPgm

DosExecPgm

RESULTCODES struc
 
  resc_codeTerminate dw  ? ;Termination Code -or- Process ID
  resc_codeResult    dw  ? ;Exit Code
 
RESULTCODES ends

EXTRN  DosExecPgm:FAR
INCL_DOSPROCESS     EQU 1

PUSH@  OTHER   ObjNameBuf    ;Object name buffer (returned)
PUSH   WORD    ObjNameBufL   ;Length of object name buffer
PUSH   WORD    ExecFlags     ;Execute asynchronously/trace
PUSH@  ASCIIZ  ArgPointer    ;Address of argument string
PUSH@  ASCIIZ  EnvPointer    ;Address of environment string
PUSH@  DWORD   ReturnCodes   ;Termination codes (returned)
PUSH@  ASCIIZ  PgmPointer    ;Program file path name string
CALL   DosExecPgm

Returns WORD


[Back: DosError]
[Next: DosExit]