CountDOS and SetFocus: Windows(TM) 3.1 TSR Samples

CountDOS and SetFocus demonstrate the support for
terminate-and-stay-resident (TSR) programs in Microsoft(R)
Windows version 3.1, as described in the "TSR Support in
Microsoft Windows Version 3.1" technical article on the
Microsoft Developer Network CD.

CountDOS is both a Windows-based application and a TSR.
The MS-DOS(R) entry point contains a Windows-aware TSR
that counts MS-DOS function calls, provides file deletion
confirmation, and launches a Windows-based application
when Windows starts up. The New Executable entry point
contains the Windows-based application that the TSR will
launch. Thus, CountDOS launches itself (in a Windows sort
of way).

Run COUNTDOS.EXE from MS-DOS before starting enhanced-mode
Windows. The program accepts the following command-line
parameters:

>  /r:  Resets internal statistics on how many MS-DOS
calls have been issued.

>  /d:  Enables/disables file deletion confirmation.

>  /u:  Uninstalls the TSR (if possible).

SetFocus is an MS-DOS application that uses the Windows
Interrupt 2Fh interface to set the focus to a specified
virtual machine (VM). To run SetFocus, type "setfocus x"
(where x is a decimal number) from an MS-DOS command
 prompt inside Windows 3.1 enhanced mode, This command
switches the focus to virtual machine x.

CountDOS and SetFocus were built and tested under
Microsoft Windows version 3.1 enhanced mode.
 
KEYWORDS: PR-CD2; INT2FAPI; TSR_Exec_Cmd
