CMDGoTSR

The CMDGoTSR function initiates a background thread for the emulator and then executes an MS-DOS TSR interrupt.

MS-DOS

SHORT APIENTRY CMDGoTSR(

    ULONG entryPoint,

   UCHAR FAR *stack,

   UCHAR FAR *topOfRam

  );


Parameters

entryPoint
Pointer to the function where the background thread will start execution.
stack
Pointer to the stack of the background thread.
topOfRam
Top of RAM; all memory above this address will be released by the NAP for LAN Manager or the NAP for NetWare (LMBASE and NWBASE, respectively).

Remarks

An MS-DOS-based emulator should complete its initialization, then execute this call to go resident. A thread of execution will be created at the entry point specified.

This call will never return control to the calling program.