Code: Select all | Expand
#include <windows.h>
...
if( ! bResult )
MessageBox( 0, "error", "can't ejec't the volume", 0 );
return bResult;
Code: Select all | Expand
HB_FUNC( EJECTVOLUME )
{
BOOL bResult = EjectVolume( ... );
if( ! bResult )
MessageBox( ... );
hb_retl( bResult );
}