TBApiGetNakMessage API Call

 

Description

Get controller NAK message, if one was issued.

Parameters

Device handle, pointer to string and max length.

Returns

0 = fail, 1 = OK.

Notes

If the specified device executed a macro and the attached controller returned a NAK this function returns a pointer to a string containing the associated NAK text otherwise returns a pointer to an empty string.

 

Visual C++ Declaration/example

 

BOOL TBApi TBApiGetNakMessage(HTBDEVICE aDeviceHandle, TCHAR* aMsg, int aMaxLength);

 

Visual Basic Declaration/example

 

Public Declare Function TBApiGetNakMessage Lib "TBapi" Alias "_DLL_TBApiGetNakMessage@12" (ByVal aDeviceHandle As Byte, ByVal aMsg As Long, ByVal aMaxLength As Long) As Boolean