MM Developer's Guide
MM Interfaces | MM Methods | MM Types and Misc API


IMoaMmTerminator


Interface ID: IID_IMoaMmTerminator
Pointer type: PIMoaMmTerminator
Inheritance: IMoaUnknown
Header file: mmiservc.h

Description


All classes supporting this interface are instantiated at shut-down before the application quits. The class' Terminate() method is called; the class is released. This allows Xtras to perform their own shut- down and global clean-up. The corresponding start-up interface is IMoaMmInterrogator.

Implement IMoaMmInterrogator and IMoaMmTerminator only when absolutely necessary to make your Xtra work. Using these interfaces means that your Xtra is always called at start-up and shutdown, which eliminates the benefits of having an Xtra registry.

Important: You must register the class that implements IMoaMmTerminator for it to be instantiated at shutdown. You do this by calling AddRegistryEntry() with the class and interface in the Register() method of your Xtra's registsration class.

If you support both IMoaMmInterrogator and IMoaMmTerminator on the same class, two instances are created--one at start-up and one at shut-down.

Methods

Terminate()

Terminate()

Syntax

Terminate(PIMoaMmTerminatorThis)

Parameters

This
Pointer to the IMoaMmTerminator interface

Returns

void

Description

Implement this method to perform shutdown deallocation, process termination, and other activities required to free an Xtra.

Copyright © 1995-2007 Adobe Macromedia Software LLC, Inc.