From 9ccea92086a5fed79533d98570d7f29be069a7c2 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Sun, 6 Oct 2024 18:17:57 +0200 Subject: [PATCH] Include : - aggiunti prototipi di EgtBasis. --- EBsAPI.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 EBsAPI.h diff --git a/EBsAPI.h b/EBsAPI.h new file mode 100644 index 0000000..9fee245 --- /dev/null +++ b/EBsAPI.h @@ -0,0 +1,42 @@ +//---------------------------------------------------------------------------- +// EgalTech 2024-2024 +//---------------------------------------------------------------------------- +// File : EBsAPI.h Data : 05.10.24 Versione : 2.6j1 +// Contenuto : API (application programming interface). +// +// +// +// Modifiche : 05.10.24 DS Creazione modulo. +// +// +//---------------------------------------------------------------------------- + +#pragma once + +#define NOMINMAX +#include + +//----------------------- Macro per import/export ---------------------------- +#undef EGTBASIS_EXPORT +#if defined( I_AM_EGTBASIS) // da definirsi solo nella DLL + #define EGTBASIS_EXPORT __declspec( dllexport) +#else + #define EGTBASIS_EXPORT __declspec( dllimport) +#endif + +//----------------------------------------------------------------------------- +#ifdef __cplusplus +extern "C" { +#endif + +// API +EGTBASIS_EXPORT BOOL __stdcall EgtSetKey( const wchar_t* wsKey) ; +EGTBASIS_EXPORT BOOL __stdcall EgtGetKeyLevel( int nProd, int nVer, int nLev, int* pnKLev) ; +EGTBASIS_EXPORT BOOL __stdcall EgtGetKeyOptions( int nProd, int nVer, int nLev, unsigned int* pnOpt1, unsigned int* pnOpt2) ; +EGTBASIS_EXPORT BOOL __stdcall EgtGetKeyLeftDays( int* pnLeftDays) ; +EGTBASIS_EXPORT BOOL __stdcall EgtGetKeyAssLeftDays( int* pnAssLeftDays) ; +EGTBASIS_EXPORT BOOL __stdcall EgtGetKeyOptLeftDays( int* pnOptLeftDays) ; + +#ifdef __cplusplus +} +#endif