TBApiSetSettingSZ API Call

 

Description

Sets a string value in the general and device sections of the settings file.

Parameters

Device handle (see notes), settings key name and string.

Returns

0 = fail, 1 = OK.

Notes

This will set a string value in the settings file. Supply a valid Device handle to set items for a specific device in the device section or pass zero to set values in the general driver section. It is important to call TBApiApply() to commit the changes.

See also

Other settings related API calls to set and retrieve updd setting.

 

Visual C++ Declaration/example

 

BOOL TBAPI TBApiSetSettingSZ(HTBDEVICE aHandle,const TCHAR* aName, const TCHAR* aSZ);

 

Visual Basic Declaration/example

 

Public Declare Function TBApiSetSettingSZ Lib "TBapi" Alias "_DLL_TBApiSetSettingSZ@12" (ByVal aDevice As Byte, ByVal aName As String, ByVal aSZ As String) As Long