extern "C" int __declspec(dllexport) Unload() { #if _MSC_VER >= 1300 Log("%s", "Entering function " __FUNCTION__); Log("%s", "Unhooking events ..."); Log("%s", "Destroying service functions ..."); #endif // DestroyServiceFunction(MS_HISTORY_SHOWCONTACTHISTORY); DestroyServices(); DestroyEvents(); UnhookEvents(); #ifdef _DEBUG DestroyServiceFunction(hTestPlugin); #endif #if _MSC_VER >= 1300 Log("%s", "Leaving function " __FUNCTION__); #endif return 0; }
/*++ Routine Description: The virtual destructor of CServiceBase. Arguments: VOID Return Value: VOID --*/ CServiceBase::~CServiceBase() { DestroyEvents(); }
extern "C" __declspec(dllexport) int Unload() { DestroyEvents(); return 0; }