Setting up the Application Verifier Tool to Test a Driver (Windows CE 5.0)

Send Feedback

You can use the Application Verifier tool to test a driver. The procedure for testing a driver differs from the procedure for testing an application. For information about testing an application, see Testing an Application with the Application Verifier Tool.

Lmemdebug_autoshim.dll automatically applies shims to a module that you want to test. If present, Lmemdebug.dll loads into a process space when the process loads. Lmemdebug_autoshim.dll applies Application Verifier settings the first time it loads on the Windows CE–based device. You can use the following procedure to run Application Verifier on the modules that you are developing or to set up Application Verifier to test a driver.

To set up the Application Verifier tool to test a driver

  1. If the run-time image does not support Application Verifier, use Getappverif_cetk.bat, which is at <Platform Builder installation path>\Cepb\Wcetk\Ddtk\Desktop, to copy the required files to the release directory.

  2. Open a command prompt build window, and in the release directory create a Verify.txt file. In the release directory, rename Lmemdebug_autoshim.* to Lmemdebug.*.

    - or -

    Set the following environment variables and then run Makeverifyfile.bat. To see available options, run makeverifyfile.bat /?.

    • VERIFY_MODULES=<file names of modules to test, including file name extensions>
    • VERIFY_OPTIONS=<options>
    • VERIFY_SHIMS=<shims to apply>

    For example, in the command prompt build window, you might run the following commands:

    • set VERIFY_MODULES=tux.exe device.exe mydriver.dll
    • set VERIFY_OPTIONS=EnableFanOut
    • set VERIFY_SHIMS=shim_heap.dll shim_hleak.dll
  3. Boot the Windows CE–based device.

    The debug output shows Application Verifier settings being applied to the modules that you specified in the Verify.txt file.

    If an Application Verifier shim exposes a new Target Control command, Lmemdebug_autoshim.dll configures the registry to force Shell.exe to load the shim as an extension. To see a list of available commands, at the Windows CE prompt, enter ?.

See Also

Application Verifier Tool

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.