client/hostinfo_win.cpp File Reference

(r16139/r16069)

#include "boinc_win.h"
#include <multimon.h>
#include "client_types.h"
#include "filesys.h"
#include "str_util.h"
#include "client_msgs.h"
#include "hostinfo_network.h"
#include "hostinfo.h"

Include dependency graph for hostinfo_win.cpp:


Classes

struct  _MYMEMORYSTATUSEX
struct  INTERNALMONITORINFO

Defines

#define COMPILE_MULTIMON_STUBS
#define SM_SERVERR2   89
#define PF_SSE_DAZ_MODE_AVAILABLE   11
#define PF_NX_ENABLED   12
#define PF_SSE3_INSTRUCTIONS_AVAILABLE   13
#define PF_COMPARE_EXCHANGE128   14
#define PF_COMPARE64_EXCHANGE128   15
#define PF_CHANNELS_ENABLED   16
#define PRODUCT_ULTIMATE   0x00000001
#define PRODUCT_HOME_BASIC   0x00000002
#define PRODUCT_HOME_PREMIUM   0x00000003
#define PRODUCT_ENTERPRISE   0x00000004
#define PRODUCT_HOME_BASIC_N   0x00000005
#define PRODUCT_BUSINESS   0x00000006
#define PRODUCT_STANDARD_SERVER   0x00000007
#define PRODUCT_DATACENTER_SERVER   0x00000008
#define PRODUCT_SMALLBUSINESS_SERVER   0x00000009
#define PRODUCT_ENTERPRISE_SERVER   0x0000000A
#define PRODUCT_STARTER   0x0000000B
#define PRODUCT_DATACENTER_SERVER_CORE   0x0000000C
#define PRODUCT_STANDARD_SERVER_CORE   0x0000000D
#define PRODUCT_ENTERPRISE_SERVER_CORE   0x0000000E
#define PRODUCT_ENTERPRISE_SERVER_IA64   0x0000000F
#define PRODUCT_BUSINESS_N   0x00000010
#define PRODUCT_WEB_SERVER   0x00000011
#define PRODUCT_CLUSTER_SERVER   0x00000012
#define PRODUCT_HOME_SERVER   0x00000013
#define PRODUCT_STORAGE_EXPRESS_SERVER   0x00000014
#define PRODUCT_STORAGE_STANDARD_SERVER   0x00000015
#define PRODUCT_STORAGE_WORKGROUP_SERVER   0x00000016
#define PRODUCT_STORAGE_ENTERPRISE_SERVER   0x00000017
#define PRODUCT_SERVER_FOR_SMALLBUSINESS   0x00000018
#define PRODUCT_SMALLBUSINESS_SERVER_PREMIUM   0x00000019

Typedefs

typedef struct _MYMEMORYSTATUSEX MYMEMORYSTATUSEX
typedef struct _MYMEMORYSTATUSEXLPMYMEMORYSTATUSEX
typedef BOOL(WINAPI * MYGLOBALMEMORYSTATUSEX )(LPMYMEMORYSTATUSEX lpBuffer)
typedef void(WINAPI * PGNSI )(LPSYSTEM_INFO)
typedef BOOL(WINAPI * PGPI )(DWORD, DWORD, DWORD, DWORD, PDWORD)
typedef BOOL(__stdcall * tIPFP )(IN DWORD dwFeature)

Functions

int get_timezone (int &timezone)
int get_memory_info (double &bytes, double &swap)
int get_os_information (char *os_name, int, char *os_version, int os_version_size)
BOOL test_processor_feature (DWORD feature)
BOOL is_processor_feature_supported (DWORD feature)
int get_processor_info (char *p_vendor, int p_vendor_size, char *p_model, int p_model_size, char *p_features, int p_features_size)
int get_processor_count (int &processor_count)

Variables

HINSTANCE g_hClientLibraryDll
const char * BOINC_RCSID_37fbd07edd = "$Id: hostinfo_win.cpp 16069 2008-09-26 18:20:24Z davea $"

Define Documentation

#define COMPILE_MULTIMON_STUBS

#define PF_CHANNELS_ENABLED   16

#define PF_COMPARE64_EXCHANGE128   15

#define PF_COMPARE_EXCHANGE128   14

#define PF_NX_ENABLED   12

#define PF_SSE3_INSTRUCTIONS_AVAILABLE   13

#define PF_SSE_DAZ_MODE_AVAILABLE   11

#define PRODUCT_BUSINESS   0x00000006

#define PRODUCT_BUSINESS_N   0x00000010

#define PRODUCT_CLUSTER_SERVER   0x00000012

#define PRODUCT_DATACENTER_SERVER   0x00000008

#define PRODUCT_DATACENTER_SERVER_CORE   0x0000000C

#define PRODUCT_ENTERPRISE   0x00000004

#define PRODUCT_ENTERPRISE_SERVER   0x0000000A

#define PRODUCT_ENTERPRISE_SERVER_CORE   0x0000000E

#define PRODUCT_ENTERPRISE_SERVER_IA64   0x0000000F

#define PRODUCT_HOME_BASIC   0x00000002

#define PRODUCT_HOME_BASIC_N   0x00000005

#define PRODUCT_HOME_PREMIUM   0x00000003

#define PRODUCT_HOME_SERVER   0x00000013

#define PRODUCT_SERVER_FOR_SMALLBUSINESS   0x00000018

#define PRODUCT_SMALLBUSINESS_SERVER   0x00000009

#define PRODUCT_SMALLBUSINESS_SERVER_PREMIUM   0x00000019

#define PRODUCT_STANDARD_SERVER   0x00000007

#define PRODUCT_STANDARD_SERVER_CORE   0x0000000D

#define PRODUCT_STARTER   0x0000000B

#define PRODUCT_STORAGE_ENTERPRISE_SERVER   0x00000017

#define PRODUCT_STORAGE_EXPRESS_SERVER   0x00000014

#define PRODUCT_STORAGE_STANDARD_SERVER   0x00000015

#define PRODUCT_STORAGE_WORKGROUP_SERVER   0x00000016

#define PRODUCT_ULTIMATE   0x00000001

#define PRODUCT_WEB_SERVER   0x00000011

#define SM_SERVERR2   89


Typedef Documentation

typedef BOOL(WINAPI * MYGLOBALMEMORYSTATUSEX)(LPMYMEMORYSTATUSEX lpBuffer)

typedef void(WINAPI * PGNSI)(LPSYSTEM_INFO)

typedef BOOL(WINAPI * PGPI)(DWORD, DWORD, DWORD, DWORD, PDWORD)

typedef BOOL(__stdcall * tIPFP)(IN DWORD dwFeature)


Function Documentation

int get_memory_info ( double &  bytes,
double &  swap 
)

int get_os_information ( char *  os_name,
int  ,
char *  os_version,
int  os_version_size 
)

int get_processor_count ( int &  processor_count  ) 

int get_processor_info ( char *  p_vendor,
int  p_vendor_size,
char *  p_model,
int  p_model_size,
char *  p_features,
int  p_features_size 
)

Here is the call graph for this function:

int get_timezone ( int &  timezone  ) 

BOOL is_processor_feature_supported ( DWORD  feature  ) 

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL test_processor_feature ( DWORD  feature  ) 

Here is the caller graph for this function:


Variable Documentation

const char* BOINC_RCSID_37fbd07edd = "$Id: hostinfo_win.cpp 16069 2008-09-26 18:20:24Z davea $"


Generated on Mon Oct 6 10:38:51 2008 for BOINC by  doxygen 1.5.6