diff --git a/EInAPI.h b/EInAPI.h index 32ef47c..21dbfe7 100644 --- a/EInAPI.h +++ b/EInAPI.h @@ -43,6 +43,9 @@ EIN_EXPORT BOOL __stdcall EgtSetCommandLogger( const wchar_t* sLogFile) ; EIN_EXPORT void __stdcall EgtEnableCommandLogger( void) ; EIN_EXPORT void __stdcall EgtDisableCommandLogger( void) ; EIN_EXPORT BOOL __stdcall EgtGetVersionInfo( wchar_t*& wsVer) ; +EIN_EXPORT BOOL __stdcall EgtGetOsInfo( wchar_t*& wsOs) ; +EIN_EXPORT BOOL __stdcall EgtGetCpuInfo( wchar_t*& wsCpu) ; +EIN_EXPORT BOOL __stdcall EgtGetMemoryInfo( wchar_t*& wsMem) ; EIN_EXPORT BOOL __stdcall EgtFreeMemory( void* pMem) ; EIN_EXPORT BOOL __stdcall EgtOutLog( const wchar_t* sMsg) ; diff --git a/EgnPcInfo.h b/EgnPcInfo.h new file mode 100644 index 0000000..9bdb1fe --- /dev/null +++ b/EgnPcInfo.h @@ -0,0 +1,31 @@ +//---------------------------------------------------------------------------- +// EgalTech 2015-2015 +//---------------------------------------------------------------------------- +// File : EGnPcInfo.h Data : 11.03.15 Versione : 1.6c1 +// Contenuto : Prototipi funzioni di informazioni sul PC. +// +// +// +// Modifiche : 11.03.15 DS Creazione modulo. +// +// +//---------------------------------------------------------------------------- + +#pragma once + +#include + +//----------------------- Macro per import/export ---------------------------- +#undef EGN_EXPORT +#if defined( I_AM_EGN) // da definirsi solo nella DLL + #define EGN_EXPORT __declspec( dllexport) +#else + #define EGN_EXPORT __declspec( dllimport) +#endif + +//----------------------------------------------------------------------------- +EGN_EXPORT bool GetCpuInfo( std::string& sCpuInfo) ; +EGN_EXPORT bool GetOsInfo( std::string& sOsInfo) ; +EGN_EXPORT bool GetMemoryInfo( std::string& sMemInfo) ; +EGN_EXPORT bool GetUserInfo( std::string& sUserInfo) ; +