9ccea92086
- aggiunti prototipi di EgtBasis.
43 lines
1.4 KiB
C
43 lines
1.4 KiB
C
//----------------------------------------------------------------------------
|
|
// 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 <windows.h>
|
|
|
|
//----------------------- 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
|