Exemple #1
0
EXTERN_C __declspec(dllexport) int Unload(void)
{
	WaitForWorkingThreads();

	::CloseHandle(g_hEventWorkThreadStop);

	return 0;
}
Exemple #2
0
	__declspec(dllexport) int Unload(void)
	{
		std::for_each(g_ahServices.begin(), g_ahServices.end(), boost::bind(Quotes_DestroyServiceFunction, _1));
		std::for_each(g_ahEvents.begin(), g_ahEvents.end(), boost::bind(Quotes_UnhookEvent, _1));
		std::for_each(g_ahMenus.begin(), g_ahMenus.end(), boost::bind(Quotes_RemoveMenuItem, _1));

		WaitForWorkingThreads();

		::CloseHandle(g_hEventWorkThreadStop);

		return 0;
	}