Page 4 of 4

Re: DLLCALL under Fivewin

Posted: Mon Dec 26, 2022 9:17 am
by Antonio Linares
Place it just before the final return:

Code: Select all | Expand

#include <windows.h>

...

if( ! bResult )
   MessageBox( 0, "error", "can't ejec't the volume", 0 );

return bResult;
I would suggest to write a Harbour wrapper for it and there you can issue the warning or simply generate a Harbour error:

Code: Select all | Expand

HB_FUNC( EJECTVOLUME )
{
   BOOL bResult = EjectVolume( ... );

   if( ! bResult )
      MessageBox( ... );

   hb_retl( bResult );
}