|
ANY-maze Help > The ANY-maze reference > ANY-maze plug-ins > Plug-in API reference > AME_TERMINATE message AME_TERMINATE message
The AME_TERMINATE message is used to terminate a plug-in. It is sent to all plug-in DLLs during ANY-maze shutdown, just before the DLL is unloaded. Note that only one AME_TERMINATE message will be sent to your DLL, irrespective of the number of plug-ins that it implements. ParametersguidNot used - always NULL. wParamNot used - always 0. lParamNot used - always 0. Return valueThe only valid return codes from this message are:
It doesn't actually matter what you return, but it is nevertheless good practice to return AME_OK if your termination was performed successfully and AME_ERROR otherwise. RemarksIn most cases you can just return AME_OK to this message and do nothing else. However, you may need to perform some clean-up, especially if you processed AME_INITIALISE. For example, if your AME_INITIALISE processing created a thread, then this would be the time to terminate it.
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T1007 |