Using MAPI Call Traces

Performance information can be gathered from your application by using the MAPI call trace provided as part of the MAPI package.

    To get MAPI call traces from the personal information store
  1. Copy MSPST.INI from the MAPI SDK to the root of your Windows NT Server directory.
  2. Change every value in MSPST.INI that starts with Perf from 0 to 1.
  3. Change the following values in MSPST.INI:
    TraceGetProps=1
    TraceSetProps=1
    TraceDeleteProps=1
    TraceSetColumns=1
    TraceSortTable=1
    TraceRestrict=1
    TraceFindRow=1
     
  4. Edit or create the MAPIDBG.INI file in your Windows NT Server directory to contain the following lines:
    [General]
    DebugTrace=1
     
  5. Install a debug version of the Microsoft Exchange Client.
  6. Start the Microsoft Exchange Client. Output from the PST will print to the print destination of OutputDebugString.
  7. Mark the area before the test. When the test is complete, cut and paste the text to the Windows Notepad application to save the trace for further analysis.

If you receive a First Chance Exception notification when starting the client, stop WINDBG, restart WINDBG, and then execute the following steps:

  1. From the Options menu, choose Exceptions.
  2. For Except #, enter 000006ba.
  3. Make sure Action is set to Ignore.
  4. Click Add.
  5. Click OK.
  6. Press F5 to start Microsoft Exchange Server and log on.