TBApiDriverEnable API Call



Enables or disables the driver.


BOOLEAN value where TRUE = enable and FALSE = disable.


0 = fail, 1 = OK.


If disabled the driver discards all packets read and data is not passed to the mouse port or any registered callback function.

It is necessary to invoke TBApiApply for the changes to take effect.


Visual C++ Declaration/example


BOOL TBAPI TBApiDriverEnable(BOOL aState);


If ( TBApiDriverEnable(TRUE))

            AfxMessageBox(“Driver enabled successfully”);


Visual Basic Declaration/example


Public Declare Function TBApiDriverEnable Lib "TBapi" Alias “_DLL_TBApiDriverEnable@4" (aState as Long) As Long


If TBApiDriverEnable(True) then

            MsgBox “Driver enabled successfully”

End If