summaryrefslogtreecommitdiff
path: root/YAMN/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'YAMN/main.cpp')
-rw-r--r--YAMN/main.cpp35
1 files changed, 5 insertions, 30 deletions
diff --git a/YAMN/main.cpp b/YAMN/main.cpp
index d8495b5..05b7fd5 100644
--- a/YAMN/main.cpp
+++ b/YAMN/main.cpp
@@ -53,6 +53,7 @@ PLUGINLINK *pluginLink;
YAMN_VARIABLES YAMNVar;
int hLangpack;
+struct MM_INTERFACE mmi;
static const MUUID interfaces[] = {MUUID_YAMN_FORCECHECK, MIID_LAST};
@@ -60,7 +61,7 @@ PLUGININFOEX pluginInfo={
sizeof(PLUGININFOEX),
YAMN_SHORTNAME,
YAMN_VERSION,
- "Mail notifier and browser for Miranda IM. Included POP3 protocol.",
+ "Mail notifier and browser for Miranda IM. Included POP3 protocol. Mod for Mataes Pack.",
"y_b tweety (majvan)",
"francois.mean@skynet.be",
"© (2002-2004 majvan) 2005-2007 tweety y_b Miranda community",
@@ -225,31 +226,6 @@ void SetDefaultProtocolIcons()
extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
{
-#ifndef WIN2IN1
- OSVERSIONINFO OSversion;
-
- OSversion.dwOSVersionInfoSize=sizeof(OSVERSIONINFO);
-
- GetVersionEx(&OSversion);
- switch(OSversion.dwPlatformId)
- {
- case VER_PLATFORM_WIN32s:
- case VER_PLATFORM_WIN32_WINDOWS:
-#ifndef WIN9X
- MessageBoxA(NULL,"This YAMN cannot run on Windows 95, 98 or Me. Why? Read FAQ. You should download Win9x version.","YAMN error",MB_OK | MB_ICONSTOP);
- return FALSE;
-#else
- break;
-#endif
- case VER_PLATFORM_WIN32_NT:
-#ifdef WIN9X
- MessageBoxA(NULL,"This YAMN is intended for Windows 95, 98 or Me. You should use native WinNT version.","YAMN error",MB_OK | MB_ICONSTOP);
- return FALSE;
-#else
- break;
-#endif
- }
-#endif // WIN2IN1
YAMNVar.hInst=hinstDLL;
if(fdwReason==DLL_PROCESS_ATTACH)
{
@@ -417,6 +393,7 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
pluginLink=link;
mir_getLP(&pluginInfo);
+ mir_getMMI(&mmi);
YAMN_STATUS = ID_STATUS_OFFLINE;
@@ -475,10 +452,8 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link)
}
//Registering YAMN as protocol
- PROTOCOLDESCRIPTOR pd;
-
- memset(&pd,0,sizeof(pd));
- pd.cbSize=sizeof(pd);
+ PROTOCOLDESCRIPTOR pd = {0};
+ pd.cbSize=PROTOCOLDESCRIPTOR_V3_SIZE;
pd.szName=ProtoName;
pd.type=PROTOTYPE_PROTOCOL;