TBApiDriverEnable API Call

 

Description

Enables or disables the driver.

Parameters

BOOLEAN value where TRUE = enable and FALSE = disable.

Returns

0 = fail, 1 = OK.

Notes

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