From 9e1644e588073c41a7c3923d96ca875cf0bfb4a7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 1 Jan 2010 05:03:13 +0000 Subject: [PATCH] svn path=/trunk/boinc/; revision=20055 --- lib/win_util.h | 2 +- samples/wrapper/wrapper.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/win_util.h b/lib/win_util.h index 5de30882a6..8591bb43ce 100644 --- a/lib/win_util.h +++ b/lib/win_util.h @@ -46,7 +46,7 @@ inline std::string W2A(const std::wstring& str) { return result; } -extern int suspend_or_resume_threads(DWORD pid, bool resume); +extern int suspend_or_resume_threads(DWORD pid, DWORD threadid, bool resume); extern void chdir_to_data_dir(); extern bool is_remote_desktop(); diff --git a/samples/wrapper/wrapper.cpp b/samples/wrapper/wrapper.cpp index 375bada337..a27bac9c3b 100644 --- a/samples/wrapper/wrapper.cpp +++ b/samples/wrapper/wrapper.cpp @@ -418,7 +418,7 @@ void TASK::kill() { void TASK::stop() { #ifdef _WIN32 - suspend_or_resume_threads(pid, false); + suspend_or_resume_threads(pid, 0, false); #else ::kill(pid, SIGSTOP); #endif @@ -427,7 +427,7 @@ void TASK::stop() { void TASK::resume() { #ifdef _WIN32 - suspend_or_resume_threads(pid, true); + suspend_or_resume_threads(pid, 0, true); #else ::kill(pid, SIGCONT); #endif