diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-23 03:24:34 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2006-11-23 03:24:34 +0000 |
commit | ef2480c037838908f8dfa6224e1b8e52a5093ac7 (patch) | |
tree | fa7f27b7412aa53fee1be007596bff660f2f7568 | |
parent | 850e6d0b1ef34cb0ab6f4fa60327621254f69384 (diff) |
version check, for tabbed options
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@60 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r-- | iax/dllmain.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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()) {
|