#include "include/enigma_api.h"// the module contains a definitions of Enigma API#pragma link "include/enigma_ide.lib"void CheckTrial(){int TotalExecs;int LeftExecs;if(EP_TrialExecutions(&TotalExecs,&LeftExecs)){if(LeftExecs ==0){MessageBox(0,"Your trial period has expired! You must purchase application to take effect!","Application",0);ExitProcess(0);}}else{MessageBox(0,"I seem that you have forgotten to define days trial limit in Enigma!","Application",0);}}

See function examples in the installation folder, Examples\Trial subfolder.