From ef2480c037838908f8dfa6224e1b8e52a5093ac7 Mon Sep 17 00:00:00 2001 From: sje Date: Thu, 23 Nov 2006 03:24:34 +0000 Subject: version check, for tabbed options git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@60 4f64403b-2f21-0410-a795-97e2b3489a10 --- iax/dllmain.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'iax/dllmain.cpp') diff --git a/iax/dllmain.cpp b/iax/dllmain.cpp index a96ab4c..fdeee19 100644 --- a/iax/dllmain.cpp +++ b/iax/dllmain.cpp @@ -74,6 +74,12 @@ HANDLE hModulesLoaded; extern "C" __declspec (dllexport) int __cdecl Load(PLUGINLINK *link) { pluginLink=link; + DWORD mirandaVersion = CallService(MS_SYSTEM_GETVERSION, 0, 0); + if(mirandaVersion < (MIRANDA_VER << 8)) { + MessageBox(0, Translate("This plugin requires Miranda version 0.6+. Plugin disabled."), Translate("IAX Plugin error"), MB_OK | MB_ICONERROR); + return 1; + } + PreInitOptions(); if(!InitIAXInterface()) { -- cgit v1.2.3