#include "commonheaders.h" std::list plugins; boost::mutex plugin_list_mutex; std::list services; boost::mutex service_list_mutex; void CreateServiceFunction(const char* name, SERVICE svc); void* CallService(const char *,void*); int ServiceExists(const char *); PLUGINLINK pluglink = {&CreateServiceFunction, &CallService, &ServiceExists}; #ifdef _WIN32 HINSTANCE hInst; int __stdcall WinMain( __in HINSTANCE hInstance, __in_opt HINSTANCE hPrevInstance, __in_opt LPSTR lpCmdLine, __in int nShowCmd ) #else int main() #endif { #ifdef _WIN32 hInst = hInstance; #endif void load_modules(); void run_plugins(); load_modules(); run_plugins(); while(true) boost::this_thread::sleep(boost::posix_time::seconds(10)); //warning from compiller on this string can be safely ignored return 0; }