The CMDGoTSR function initiates a background thread for the emulator and then executes an MS-DOS TSR interrupt.
SHORT APIENTRY CMDGoTSR(
ULONG entryPoint, | |
UCHAR FAR *stack, | |
UCHAR FAR *topOfRam | |
); |
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.