From 76282d0a20422392f1db7d338fa4e3508174c29f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 11 Oct 2012 19:22:34 +0000 Subject: [PATCH] - Win compile fixes. For now, include psapi.lib in various project properties. Try to figure out a different way. svn path=/trunk/boinc/; revision=26149 --- api/boinc_api.cpp | 2 +- checkin_notes | 14 ++++++++++++++ client/app_start.cpp | 2 +- lib/boinc_win.h | 1 + win_build/boinc_ss.vcproj | 2 +- win_build/example_app_multi_thread.vcproj | 2 +- win_build/sleeper.vcproj | 2 +- win_build/uc2.vcproj | 2 +- win_build/uc2_graphics.vcproj | 2 +- win_build/vboxwrapper.vcproj | 2 +- win_build/wrapper.vcproj | 2 +- 11 files changed, 24 insertions(+), 9 deletions(-) diff --git a/api/boinc_api.cpp b/api/boinc_api.cpp index 5c4092bb4c..87bca9f2d5 100644 --- a/api/boinc_api.cpp +++ b/api/boinc_api.cpp @@ -387,7 +387,7 @@ static bool client_dead() { // Windows doesn't have waitpid() :-( // DWORD pids[4096], nb; - BOOL r = EnumProcesses(pids, sizeof(pids), nb); + BOOL r = EnumProcesses(pids, sizeof(pids), &nb); if (!r) return false; int n = nb/sizeof(DWORD); for (int i=0; iproject->authenticator); aid.slot = slot; #ifdef _WIN32 - if (strstr(gstate.hostinfo.os_name, "Windows 2000")) { + if (strstr(gstate.host_info.os_name, "Windows 2000")) { // Win2K immediately reuses PIDs, so can't use this mechanism // aid.client_pid = 0; diff --git a/lib/boinc_win.h b/lib/boinc_win.h index 99a20c1767..8e745a9df1 100644 --- a/lib/boinc_win.h +++ b/lib/boinc_win.h @@ -96,6 +96,7 @@ #include #include #include +#include #include #if !defined(__CYGWIN32__) || defined(USE_WINSOCK) diff --git a/win_build/boinc_ss.vcproj b/win_build/boinc_ss.vcproj index 5ecb4e5a60..dbb15ede84 100644 --- a/win_build/boinc_ss.vcproj +++ b/win_build/boinc_ss.vcproj @@ -287,7 +287,7 @@ />