The following are necessary form widget creation/deletion routines that need to get set using HtmlLibSetFormWidgetProc. Please see sample code after looking at HtmlLibSetFormWidgetProc
Structure to add a message + attachment passed with MMPRO_ADD_MESSAGE_WITH_ATTACHMENT Categories & MailAddRecordParamsType are defined in AppLaunchCmd.h