From 2e2f69b2528b46f700f944223207d26749e0f8e1 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 23 Nov 2023 10:47:24 +0100 Subject: [PATCH] Include : - aggiornamento prototipi. --- EInAPI.h | 2 ++ EXeExecutor.h | 2 ++ EgtFunPtrType.h | 9 +++++---- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/EInAPI.h b/EInAPI.h index ad54e8c..1776070 100644 --- a/EInAPI.h +++ b/EInAPI.h @@ -34,6 +34,8 @@ extern "C" { // General EIN_EXPORT BOOL __stdcall EgtInit( int nDebug, const wchar_t* wsLogFile, const wchar_t* wsLogMsg) ; EIN_EXPORT BOOL __stdcall EgtExit( void) ; +typedef bool (__stdcall * pfOnTerminateProcess) ( int) ; +EIN_EXPORT BOOL __stdcall EgtSetOnTerminateProcess( pfOnTerminateProcess pFun) ; EIN_EXPORT BOOL __stdcall EgtSetUserLevel( int nUserLev) ; EIN_EXPORT int __stdcall EgtGetUserLevel( void) ; EIN_EXPORT BOOL __stdcall EgtSetKey( const wchar_t* wsKey) ; diff --git a/EXeExecutor.h b/EXeExecutor.h index 16571ce..ae1d793 100644 --- a/EXeExecutor.h +++ b/EXeExecutor.h @@ -37,6 +37,8 @@ class LuaMgr ; // General EXE_EXPORT bool ExeInit( int nDebug, const std::string& sLogFile, const std::string& sLogMsg) ; EXE_EXPORT bool ExeExit( void) ; +EXE_EXPORT bool ExeSetOnTerminateProcess( pfOnTerminateProcess pFun) ; +EXE_EXPORT bool ExeOnTerminateProcess( int nExitCode) ; EXE_EXPORT int ExeGetDebugLevel( void) ; EXE_EXPORT bool ExeSetUserLevel( int nUserLev) ; EXE_EXPORT int ExeGetUserLevel( void) ; diff --git a/EgtFunPtrType.h b/EgtFunPtrType.h index fe4c6dd..853e7a1 100644 --- a/EgtFunPtrType.h +++ b/EgtFunPtrType.h @@ -1,13 +1,13 @@ //---------------------------------------------------------------------------- -// EgalTech 2018-2018 +// EgalTech 2018-2023 //---------------------------------------------------------------------------- -// File : EgtFunPtrType.h Data : 19.07.18 Versione : 1.9g2 +// File : EgtFunPtrType.h Data : 23.11.23 Versione : 2.5k5 // Contenuto : Dichiarazione tipi puntatori a funzione. // // // // Modifiche : 19.07.18 DS Creazione modulo. -// +// 23.11.23 DS Aggiunta pfOnTerminateProcess. // //---------------------------------------------------------------------------- @@ -16,5 +16,6 @@ #include //---------------------------------------------------------------------------- -typedef int (__stdcall * pfProcEvents) (int, int) ; +typedef bool (__stdcall * pfOnTerminateProcess) ( int) ; +typedef int (__stdcall * pfProcEvents) ( int, int) ; typedef bool (__stdcall * pfOutText) ( const std::string&) ;