diff options
author | George Hazan <george.hazan@gmail.com> | 2012-05-26 15:36:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-05-26 15:36:17 +0000 |
commit | 1ee7fc10f76d284b5b8bc4ed4d93bdd1a057d55b (patch) | |
tree | 79e7cc2d2fe0288f934f577610ea612e340235f1 /plugins/Svc_vi/main.cpp | |
parent | 1d9dd615e5f1a43d3b78f37b5aaae836dfac1c4d (diff) |
andalso Unicode logging
git-svn-id: http://svn.miranda-ng.org/main/trunk@183 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Svc_vi/main.cpp')
-rw-r--r-- | plugins/Svc_vi/main.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/plugins/Svc_vi/main.cpp b/plugins/Svc_vi/main.cpp index 530b6fe487..b376278c41 100644 --- a/plugins/Svc_vi/main.cpp +++ b/plugins/Svc_vi/main.cpp @@ -77,33 +77,25 @@ extern "C" __declspec(dllexport) const MUUID *MirandaPluginInterfaces() bool WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
{
- LogToFileInit();
- LogToFile("Entering %s", __FUNCTION__);
hInst=hinstDLL;
if (fdwReason == DLL_PROCESS_ATTACH) DisableThreadLibraryCalls(hinstDLL);
EnglishLocale = MAKELCID(MAKELANGID(0x09, 0x01), SORT_DEFAULT); //create our english locale and use it everywhere it's needed
- LogToFile("Leaving %s", __FUNCTION__);
return TRUE;
}
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- LogToFile("Entering %s", __FUNCTION__);
- LogToFile("Leaving %s", __FUNCTION__);
return &pluginInfo;
}
extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
{
- LogToFile("Entering %s", __FUNCTION__);
pluginLink=link;
mir_getLP(&pluginInfo);
mir_getMMI(&mmi);
mir_getUTFI(&utfi);
- LogToFile("Initialising services ...");
InitServices();
- LogToFile("Hooking events ...");
HookEvents();
hiVIIcon = LoadIcon(hInst,MAKEINTRESOURCE(IDI_MAIN));
@@ -133,7 +125,6 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) //Menu item
//if (DBGetContactSettingByte(NULL, ModuleName, "MenuItem", TRUE)) {
{
- LogToFile("creating menu item ...");
CLISTMENUITEM mi = { 0 };
mi.cbSize = sizeof(mi);
mi.position = mi.popupPosition = 2000089999;
@@ -147,24 +138,15 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) // mi.pszName = "Test 1";
// CallService(MS_CLIST_ADDMAINMENUITEM, 0, (LPARAM) &mi);
}
- LogToFile("Check riched32.dll ...");
if (LoadLibraryA("RichEd32.dll") == NULL)
MessageBoxA(NULL, "d'oh", "d'oh", MB_OK);
- LogToFile("Leaving %s", __FUNCTION__);
return 0;
}
extern "C" int __declspec(dllexport) Unload(void)
{
- LogToFile("Entering %s", __FUNCTION__);
-
- LogToFile("Unhooking events ...");
UnhookEvents();
-
- LogToFile("Destroying services ...");
DestroyServices();
-
- LogToFile("Leaving %s", __FUNCTION__);
return 0;
}
\ No newline at end of file |