if( ClsId == AEECLSID_DISPLAY )
{
// Create the applet and make room for the applet structure
if( AEEApplet_New(sizeof(display),
ClsId,
pIShell,
po,
(IApplet**)ppObj,
(AEEHANDLER)display_HandleEvent,
(PFNFREEAPPDATA)display_FreeAppData) ) // the FreeAppData function is called after sending EVT_APP_STOP to the HandleEvent function