Using Shims with the Application Verifier Tool (Windows Embedded CE 6.0)
1/6/2010
A shim allows you to modify or replace the behavior of functions when testing an application with the Application Verifier tool. You can create your own shims, or you can select one or more shims provided with the Application Verifier tool.
You might find it helpful to run a shim, such as the Heap Verifier shim provided with the Application Verifier tool, with a debugger attached to the target device. When you search for memory corruption, it can be easier to track down the source of a problem if you are close to the location where the problem occurs. For example, the Heap Verifier shim raises an exception when it finds memory corruption. If a debugger is attached to the target device, the debugger points to the location where the exception occurred, which might be close to the source of the problem.
If a shim supports the command extension model for Shell.exe, you can interact with the shim from the Target Control window in Microsoft Platform Builder. Alternatively, you can use appverif.exe on the target device to enter commands for the shim in the same way that you enter commands in the Target Control window. Run appverif.exe -h for command line options and usage.
A shim is registered as a Target Control extension if the HKEY_LOCAL_MACHINE\Software\Microsoft\TxtShell registry key contains an ExtensionName entry with a value equal to the name of the .dll file or if the shim is loaded with the loadext command.
In This Section
- Shims Provided with the Application Verifier Tool
Describes the shims that are provided with App Verifier
- Writing a Shim for the Application Verifier Tool
Explains how to write a shim for App Verifier