Int 2F/AX=4B20h

lup.gif ldown.gif Interrups Categories Contents

rbline.gif

MS Windows 3+ - WIN.COM - SET PROGRAM TO EXECUTE ON EXIT

AX = 4B20h

Return:
AX = 0000h if successful DX:CX -> 256-byte buffer for pathname and commandline (see #02824)

Notes: When the Windows function ExitWindows is called with an exit code of 44h, WIN.COM executes the program specified in the returned buffer and then restarts Windows. The returned address is a real-mode segment:offset value

See Also: AX=4B21h

Format of WIN.COM buffer: Offset Size Description (Table 02824) 00h 128 BYTEs commandline for program (count byte, command tail, 0Dh) 80h 128 BYTEs ASCIZ pathname of program to execute

Note: The order above is for a Windows95 DOS box; it may be reversed under Windows 3.x

Category: Windows - Int 2Fh - M

rbline.gif

lup.gif ldown.gif Interrups Categories Contents