From 758f2c5c1f81cd566e65df9b851874525b5091fc Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Wed, 3 Jun 2009 07:14:47 +0000 Subject: Fixed compatibility with Vista and later git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@464 4f64403b-2f21-0410-a795-97e2b3489a10 --- MySpace/MySpace.cpp | 2 +- meta2/meta2.cpp | 2 +- metacontacts/meta_main.c | 2 +- tipper/tipper.cpp | 2 +- worldtime/WorldTime.cpp | 2 +- yapp/popups2.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/MySpace/MySpace.cpp b/MySpace/MySpace.cpp index e1b26f9..6f7309c 100644 --- a/MySpace/MySpace.cpp +++ b/MySpace/MySpace.cpp @@ -115,7 +115,7 @@ void SetAllOffline() { HANDLE hModulesLoaded; extern "C" __declspec (dllexport) int Load(PLUGINLINK *link) { - DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, THREAD_SET_CONTEXT, FALSE, 0 ); + DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, 0, FALSE, DUPLICATE_SAME_ACCESS ); pluginLink=link; diff --git a/meta2/meta2.cpp b/meta2/meta2.cpp index 5f48f27..72dd822 100644 --- a/meta2/meta2.cpp +++ b/meta2/meta2.cpp @@ -94,7 +94,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) { HANDLE hModulesLoaded; extern "C" __declspec (dllexport) int Load(PLUGINLINK *link) { pluginLink=link; - DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &metaMainThread, THREAD_SET_CONTEXT, FALSE, 0 ); + DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &metaMainThread, 0, FALSE, DUPLICATE_SAME_ACCESS ); mir_getMMI(&mmi); mir_getUTFI(&utfi); diff --git a/metacontacts/meta_main.c b/metacontacts/meta_main.c index 62db9ba..5115c5b 100644 --- a/metacontacts/meta_main.c +++ b/metacontacts/meta_main.c @@ -169,7 +169,7 @@ int __declspec(dllexport)Load(PLUGINLINK *link) DBVARIANT dbv; pluginLink=link; - DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &metaMainThread, THREAD_SET_CONTEXT, FALSE, 0 ); + DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &metaMainThread, 0, FALSE, DUPLICATE_SAME_ACCESS ); mir_getMMI(&mmi); diff --git a/tipper/tipper.cpp b/tipper/tipper.cpp index 100ecf9..59a5117 100644 --- a/tipper/tipper.cpp +++ b/tipper/tipper.cpp @@ -396,7 +396,7 @@ HANDLE hEventPreShutdown, hEventModulesLoaded; extern "C" int TIPPER_API Load(PLUGINLINK *link) { pluginLink = link; - DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, THREAD_SET_CONTEXT, FALSE, 0); + DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, 0, FALSE, DUPLICATE_SAME_ACCESS); set_codepage(); diff --git a/worldtime/WorldTime.cpp b/worldtime/WorldTime.cpp index bb5b58d..7e46359 100644 --- a/worldtime/WorldTime.cpp +++ b/worldtime/WorldTime.cpp @@ -111,7 +111,7 @@ extern "C" WORLDTIME_API int Load(PLUGINLINK *link) if(build_timezone_list()) { - DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, THREAD_SET_CONTEXT, FALSE, 0 ); + DuplicateHandle( GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, 0, FALSE, DUPLICATE_SAME_ACCESS ); CreatePluginServices(); HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); diff --git a/yapp/popups2.cpp b/yapp/popups2.cpp index 80c057a..134e648 100644 --- a/yapp/popups2.cpp +++ b/yapp/popups2.cpp @@ -332,7 +332,7 @@ HANDLE hEventPreShutdown, hEventModulesLoaded; extern "C" int POPUPS2_API Load(PLUGINLINK *link) { pluginLink = link; - DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, THREAD_SET_CONTEXT, FALSE, 0); + DuplicateHandle(GetCurrentProcess(), GetCurrentThread(), GetCurrentProcess(), &mainThread, 0, FALSE, DUPLICATE_SAME_ACCESS); set_codepage(); -- cgit v1.2.3