#include <aoi.h> void (*Cleanup)(void);
This function should free any resources kept in global variables, to prevent the DLL from leaking memory.