The Microsoft SNA Server DL-BASE/DMOD Interface includes significant entry points that an application, such as a 3270 emulator, can call to send and receive messages from services such as the local 2.1 node.
Several important tasks occur during proper DL-BASE/DMOD Interface operation:
Task switching, supported by MS-DOS version 5.0 and later as well as by Windows operating systems, is handled by the DMOD, and need not concern the 3270 emulator developer. However, the DMOD provides a means, using the REGISTERSWITCHPROC call, for the application to make use of the task switch detection.
The MS-DOS–based client Network Access Protocol (NAP) provides full support for applications that allow switching between foreground and background operation (for example, terminate-and-stay-resident applications), including fully preemptive scheduling of a background thread. To avoid possible interaction problems, it is important that client applications that will support background operation make use of the facilities provided by the NAP (such as the scheduler and semaphores), rather than implementing separate scheduling mechanisms hooked from MS-DOS interrupts.