In an ATEasy DLL project, you can add code to OnInit/OnInitSystem/OnEndSystem/OnEnd events in the system or any driver modules.
The OnInit Events will be executed when DLL first function is called. The OnEnd events will be called when DLL is unloaded by the application.
Events, OnInit/OnInitSystem may include some initialization code of the DLL and OnEnd/OnEndSystem may include some cleanup code processing of DLL.