Code: Select all
HB_FUNC( GETCOMM )
{
DCB dcb;
GetCommState( ( HANDLE ) hb_parnl( 1 ), &dcb );
hb_retni( ( int ) dcb.BaudRate );
}
Code: Select all
HB_FUNC( GETCOMM )
{
DCB dcb;
GetCommState( ( HANDLE ) hb_parnl( 1 ), &dcb );
hb_retni( ( int ) dcb.BaudRate );
}