示例#1
0
// unload function
extern "C" int __declspec(dllexport) Unload(void)
{
	DestroyMwin();
	DestroyWindow(hPopupWindow);

	DestroyHookableEvent(hHookWeatherUpdated);
	DestroyHookableEvent(hHookWeatherError);

	NetlibHttpDisconnect();
	Netlib_CloseHandle(hNetlibUser);

	DestroyUpdateList();
	DestroyOptions();
	DestroyWIList();				// unload all ini data from memory

	WindowList_Destroy(hDataWindowList);
	WindowList_Destroy(hWindowList);

	CloseHandle(hUpdateMutex);
	return 0;
}
示例#2
0
int CMPlugin::Unload()
{
	DestroyUpdateList();
	CloseHandle(hUpdateMutex);
	return 0;
}