private void LoadLibraries() { var dllPtr = DllLoader.LoadLibrary(Constants.LIBNAME); var modules = new List <Type>() { typeof(CoreModule), typeof(GenericModules), typeof(ProxieModule), typeof(NetworkModule), typeof(MediaModule), typeof(CallModule), typeof(ChatModule), }; LoadModules(dllPtr, modules); DllLoader.FreeLibrary(dllPtr); }