libharbour.dll virtual machine activity on dbwin32
Posted: Sat Oct 23, 2021 2:33 pm
www.FiveTechSoft.com
https://forums.fivetechsupport.com/
https://forums.fivetechsupport.com/viewtopic.php?f=45&t=40965
#include <Windows.h>
#include <hbapi.h>
#include <hbvm.h>
static void * pRequestRec;
HB_EXPORT_ATTR int hb_apache( void * _pRequestRec )
{
int iResult;
pRequestRec = _pRequestRec;
hb_vmInit( HB_TRUE );
OutputDebugString( "after hb_vmInit()\n" );
iResult = hb_vmQuit();
OutputDebugString( "after hb_vmQuit()\n" );
return iResult;
}
void * GetRequestRec( void )
{
return pRequestRec;
}
HB_FUNC( AP_ENTRY )
{
hb_apache( NULL );
}