The systems are builded as dlls. Using windows this dlls must support the main entry points for dlls calles DllMain. Here we must implement the default behaviour for attaching etc. .