Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- DOS 5.0 Ref. - <b>function 4dh get child-program return value</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 4Dh            Get Child-Program Return Value

    Retrieves the return value specified by the last child program.
    The child program must have specified a return value by using
    either function 4ch (EXIT) or 31h (KEEP).

        Entry   AH = 4Dh

        Return  AL = Return value from child program
                AH = Termination method
                     | 00h   Normal termination
                     | 01h   Terminated by Ctrl-C (Ctrl-Break)
                     | 02h   Terminated by DOS because of
                     |       critical device error
                     | 03h   Terminated by function 31h

    ------------------------------------------------------------------

    Note
    The return value for the program is available only once.
    Subsequent calls to this function in relation to the same child
    program give meaningless results.

    If there is no child-program return value to retrieve, this
    function does not return an error, and the information in the AX
    register is meaningless.

See Also: 31h 4ch 4b00h

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson