#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
HB_FUNC( TERMINATEPROCESS )
{
hb_retl( TerminateProcess( ( HANDLE ) hb_parnl( 1 ),
IF( PCOUNT() > 1, hb_parni( 2 ), 0 ) ) );
}
#pragma ENDDUMP
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
#define IF(x,y,z) ((x)?(y):(z))
HB_FUNC( TERMINATEPROCESS )
{
hb_retl( TerminateProcess( ( HANDLE ) hb_parnl( 1 ),
IF( hb_pcount() > 1, hb_parni( 2 ), 0 ) ) );
}
#pragma ENDDUMP
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 31 guests