From 0edb0643109f1e6dd13339661ab8dae425354f8d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 14 Dec 2006 16:59:28 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=11678 --- checkin_notes | 3 +++ doc/app_dev.php | 8 ++++++++ clientlib/win/Identification.cpp => lib/win_util.C | 11 ++++------- clientlib/win/Identification.h => lib/win_util.h | 6 +++--- 4 files changed, 18 insertions(+), 10 deletions(-) rename clientlib/win/Identification.cpp => lib/win_util.C (95%) mode change 100755 => 100644 rename clientlib/win/Identification.h => lib/win_util.h (80%) diff --git a/checkin_notes b/checkin_notes index fe191edaf2..972a581190 100755 --- a/checkin_notes +++ b/checkin_notes @@ -13414,3 +13414,6 @@ Charlie 13 Dec 2006 mac_installer/ release_boinc.sh + +David 14 Dec 2006 + - moved clientlib/win/Identification.cpp to lib/win_util.C diff --git a/doc/app_dev.php b/doc/app_dev.php index 3a09b78d00..e103288284 100644 --- a/doc/app_dev.php +++ b/doc/app_dev.php @@ -34,6 +34,14 @@ in C/C++ 'Compile As' project properties. The BOINC API is implemented in C++. Information about using it from C and FORTRAN is here. + +

Compression

+If you release new versions frequently, +have a large executable, +and want to conserve server bandwidth, +you may want to compress your executable. +The best way to do this is with +Ultimate Packer for eXecutables (UPX). "; page_tail(); ?> diff --git a/clientlib/win/Identification.cpp b/lib/win_util.C old mode 100755 new mode 100644 similarity index 95% rename from clientlib/win/Identification.cpp rename to lib/win_util.C index e5b416d97e..8b9aab8267 --- a/clientlib/win/Identification.cpp +++ b/lib/win_util.C @@ -1,6 +1,6 @@ // Berkeley Open Infrastructure for Network Computing // http://boinc.berkeley.edu -// Copyright (C) 2005 University of California +// Copyright (C) 2006 University of California // // This is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -25,8 +25,7 @@ /** * Find out if we are on a Windows 2000 compatible system **/ -EXTERN_C __declspec(dllexport) BOOL IsWindows2000Compatible() -{ +BOOL IsWindows2000Compatible() { OSVERSIONINFO osvi; ZeroMemory(&osvi, sizeof(OSVERSIONINFO)); osvi.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); @@ -45,8 +44,7 @@ EXTERN_C __declspec(dllexport) BOOL IsWindows2000Compatible() * we perform a "lazy" bind to the new product suite * APIs that were first introduced on that platform. **/ -EXTERN_C __declspec(dllexport) BOOL IsTerminalServicesEnabled() -{ +BOOL IsTerminalServicesEnabled() { BOOL bResult = FALSE; // assume Terminal Services is not enabled DWORD dwVersion; @@ -109,8 +107,7 @@ EXTERN_C __declspec(dllexport) BOOL IsTerminalServicesEnabled() * to the product suite information stored in the registry. * This only works on the Terminal Server 4.0 platform. **/ -EXTERN_C __declspec(dllexport) BOOL ValidateProductSuite (LPSTR SuiteName) -{ +BOOL ValidateProductSuite (LPSTR SuiteName) { BOOL rVal = FALSE; LONG Rslt; HKEY hKey = NULL; diff --git a/clientlib/win/Identification.h b/lib/win_util.h similarity index 80% rename from clientlib/win/Identification.h rename to lib/win_util.h index d6e862d60e..ba86164669 100755 --- a/clientlib/win/Identification.h +++ b/lib/win_util.h @@ -19,6 +19,6 @@ #pragma once -EXTERN_C __declspec(dllexport) BOOL IsWindows2000Compatible(); -EXTERN_C __declspec(dllexport) BOOL IsTerminalServicesEnabled(); -EXTERN_C __declspec(dllexport) BOOL ValidateProductSuite (LPSTR SuiteName); +extern BOOL IsWindows2000Compatible(); +extern BOOL IsTerminalServicesEnabled(); +extern BOOL ValidateProductSuite (LPSTR SuiteName);