- Code: Select all Expand view
- #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 view
- HB_FUNC( EJECTVOLUME )
{
BOOL bResult = EjectVolume( ... );
if( ! bResult )
MessageBox( ... );
hb_retl( bResult );
}