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
-
Copy MSPST.INI from the MAPI SDK to the root of your Windows NT Server directory.
-
Type COPY MSPST.INI C:\WINNT
-
Change every value in MSPST.INI that starts with Perf from 0 to 1.
-
Change the following values in MSPST.INI:
TraceGetProps=1
TraceSetProps=1
TraceDeleteProps=1
TraceSetColumns=1
TraceSortTable=1
TraceRestrict=1
TraceFindRow=1
-
Edit or create the MAPIDBG.INI file in your Windows NT Server directory to contain the following lines:
[General]
DebugTrace=1
-
Install a debug version of the Microsoft Exchange Client.
-
Start the Microsoft Exchange Client. Output from the PST will print to the print destination of OutputDebugString.
-
On Windows NT Server, the easiest way is to start the Microsoft Exchange Client in WINDBG mode. The output appears in the Command window.
-
On a 16-bit client, use DBWIN to capture the output from the Microsoft Exchange Client.
-
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:
-
From the Options menu, choose Exceptions.
-
For Except #, enter 000006ba.
-
Make sure Action is set to Ignore.
-
Click Add.
-
Click OK.
-
Press F5 to start Microsoft Exchange Server and log on.