First, create a WST directory in the root of your C drive. Create the WST.INI file in the C:\WST directory. This file contains the following required section headers:
Section | Description |
---|---|
[EXES] | A list of applications to be tuned. Each name must be on a new line. |
[PATCH IMPORTS] | A list of .DLLs and .EXEs to be tuned for imported entries. Each name must be on a new line. |
[TIME INTERVAL] | The elapsed time between recording snapshots, in milliseconds. If left blank, 1000 is used. |
Headers for these section are required to be in the WST.INI file, but you can leave the contents of any section blank.
For example, to tune Solitaire, our WST.INI looks like this:
[EXES]
sol.exe
[PATCH IMPORTS]
[TIME INTERVAL]
Next, attach WST.DLL to the application process. If you are using Microsoft development tools, this is done using the following steps:
Run your application. Only those applications listed in the [EXES] section of WST.INI are tuned.
Note If you are using WIN32.MAK, include the $(CDEBUG) macro in your compile options, the $(LDEBUG) macro in your linker options, and TUNE=1 on your NMAKE command line. This will complete steps 1 and 2 above. For more information, see Building Applications Using WIN32.MAK.