Load Program Record (ExecLoadRec)

 This structure is used in fn 4b01H (load a program without executing).

ExecParamRec
  Offset Size Contents
  ▀▀▀▀▀▀ ▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
   +0      2  wEnvSeg      segment of environment for child (0000=current)
   +2      4  pfCmdTail    address of command line text to place at PSP:0080
   +6      4  pfrFCB_1     address of an FCB to be placed at PSP:005c
  +0ah     4  pfrFCB_2     address of an FCB to be placed at PSP:006c
  +0eh     4  lCsIp        Dword to receive program entry address
  +12h     4  lSsSp        Dword to receive program stack pointer address
          22               length of an ExecLoadRec

     wEnvSeg  and...
   pfCmdTail  and...
    pfrFCB_1  and...
    pfrFCB_2  are as described for ExecParamRec.

       lCsIp  is filled with the 32-bit address that should be used as the
              entry point for the program.  DOS calculates this as it loads
              the program.  Use a FAR JMP to this address to begin executing
              the child.
       lSsSp  is filled with the 32-bit address that should be used for the
              stack segment and stack pointer for the program (as calculated
              by DOS).

See Also: Process Control Functions
          PSP: Program Segment Prefix
          DOS Environment
                                    -♦-