EXECSTATE

EXECSTATE STRUC

esReserved dw ? ;reserved

esFlags dw ? ;type flags

esProgName dd ? ;points to ASCIIZ string of program name

esPSP dw ? ;PSP segment of the new program

esStartAddr dd ? ;starting cs:ip of the new program

esProgSize dd ? ;program size, including PSP

EXECSTATE ENDS

The EXECSTATE structure contains information used to prepare a program to be run.

Fields

esReserved

Reserved; must be zero.

esFlags

Specifies the execution flags. This value can be a combination of the following values:

Value Meaning

ES_EXE (0001h) Program is an .EXE program. If this value is not given, the program is a .COM program.
ES_OVERLAY (0002h) Program is an overlay.

esProgName

Points to a zero-terminated ASCII string that specifies the name of the program. The string must be a valid MS-DOS filename.

esPSP

Specifies the segment address of the program segment prefix (PSP) for the program.

esStartAddr

Specifies the starting address (initial CS:IP values) for the program.

esProgSize

Specifies the size of the program, in bytes, including the PSP.

See Also

Interrupt 21h Function 4B05h Set Execution State