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( DismountVolume( ( void * ) hb_parnll( 1 ) ) );
}
HB_FUNC( AUTOEJECTVOLUME)
{
hb_retl( AutoEjectVolume( ( void * ) hb_parnll( 1 ) ) );
}
HB_FUNC( CLOSEVOLUME)
{
hb_retl( CloseVolume( ( void * ) hb_parnll( 1 ) ) );
}
HB_FUNC( PREVENTREMOVALOFVOLUME )
{
hb_retl( PreventRemovalOfVolume( ( void * ) hb_parnll( 1 ), FALSE ) );
}
these new HB_FUNC all compile without Error :D
but how with Prototype
HANDLE OpenVolume(TCHAR cDriveLetter);
HB_FUNC( OPENVOLUME)
{
hb_retl( OpenVolume(hb_parc( 1 )) );
}
Error E2342 FWEJECT.prg 230: Type mismatch in parameter 'cDriveLetter' (wanted 'signed char', got 'const signed char *')