Place it just before the final return: #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 ...
hi Antonio, return bResult; YES :D next is to write the Harbour wrapper for it and then from there you can check the returned value and show a msg if desired, though usually it is a better practice to leave the developer warn about it in case of an error this is my HB_FUNC() Question b...
next is to write the Harbour wrapper for it and then from there you can check the returned value and show a msg if desired, though usually it is a better practice to leave the developer warn about it in case of an error
hi Enricon You have to fix the function EjectVolume() as it is not well written. while i had Problem with my DLLCALL Version i have search and found this Version in HMG Forum https://www.hmgforum.com/viewtopic.php?t=4524 but as i´m not a "C" Programmer ...
hi Antonio, YES, this new CODE compile without Error,thx :) so i try "more" and use what chatGPT have answer HB_FUNC( LOCKVOLUME){ hb_retl( LockVolume( ( void * ) hb_parnll( 1 ) ) );}HB_FUNC( DISMOUNTVOLUME ){ hb_retl( ...