From b3e380e2e2cd4d592f1facacf4dcaae29375b47e Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Mon, 27 Feb 2006 23:59:39 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=9573 --- checkin_notes | 7 +++++++ clientlib/win/Identification.cpp | 6 +++--- clientlib/win/Identification.h | 6 +++--- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/checkin_notes b/checkin_notes index dbb5854154..1c1a64e110 100755 --- a/checkin_notes +++ b/checkin_notes @@ -2416,3 +2416,10 @@ Rom 27 Feb 2006 client/ http_curl.C + +Rom 27 Feb 2006 + - Expose Windows detection code in the DLL to BOINC proper. + + clientlib/win/ + Identification.cpp + Identification.h diff --git a/clientlib/win/Identification.cpp b/clientlib/win/Identification.cpp index 032b4a2175..e5b416d97e 100755 --- a/clientlib/win/Identification.cpp +++ b/clientlib/win/Identification.cpp @@ -25,7 +25,7 @@ /** * Find out if we are on a Windows 2000 compatible system **/ -BOOL IsWindows2000Compatible() +EXTERN_C __declspec(dllexport) BOOL IsWindows2000Compatible() { OSVERSIONINFO osvi; ZeroMemory(&osvi, sizeof(OSVERSIONINFO)); @@ -45,7 +45,7 @@ BOOL IsWindows2000Compatible() * we perform a "lazy" bind to the new product suite * APIs that were first introduced on that platform. **/ -BOOL IsTerminalServicesEnabled() +EXTERN_C __declspec(dllexport) BOOL IsTerminalServicesEnabled() { BOOL bResult = FALSE; // assume Terminal Services is not enabled @@ -109,7 +109,7 @@ BOOL IsTerminalServicesEnabled() * to the product suite information stored in the registry. * This only works on the Terminal Server 4.0 platform. **/ -BOOL ValidateProductSuite (LPSTR SuiteName) +EXTERN_C __declspec(dllexport) BOOL ValidateProductSuite (LPSTR SuiteName) { BOOL rVal = FALSE; LONG Rslt; diff --git a/clientlib/win/Identification.h b/clientlib/win/Identification.h index ba86164669..d6e862d60e 100755 --- a/clientlib/win/Identification.h +++ b/clientlib/win/Identification.h @@ -19,6 +19,6 @@ #pragma once -extern BOOL IsWindows2000Compatible(); -extern BOOL IsTerminalServicesEnabled(); -extern BOOL ValidateProductSuite (LPSTR SuiteName); +EXTERN_C __declspec(dllexport) BOOL IsWindows2000Compatible(); +EXTERN_C __declspec(dllexport) BOOL IsTerminalServicesEnabled(); +EXTERN_C __declspec(dllexport) BOOL ValidateProductSuite (LPSTR SuiteName);