This example shows what a call to EndSession looks like. Refer to ISystemDebugEventFire Example (Visual J++) to see the object creation code and to see this code in a form you can run with minor modifications.
// End the session when you are finished generating events.
private static void SampleEndSession()
{
m_IEA.EndSession();
}