NWTTSGetProcessThresholds
Returns the number of explicit physical and logical record locks allowed before implicit locking begins
#include <nwtts.h> or #include <nwcalls.h> NWCCODE N_API NWTTSGetProcessThresholds ( NWCONN_HANDLE conn, pnuint8 logicalLockLevel, pnuint8 physicalLockLevel);
uses calwin32 Function NWTTSGetProcessThresholds (conn : NWCONN_HANDLE; logicalLockLevel : pnuint8; physicalLockLevel : pnuint8 ) : NWCCODE;
These are common return values; see Return Values (Return Values for C) for more information.
NWTTSGetProcessThresholds and NWTTSSetProcessThresholds are useful for applications changing the implicit process thresholds that later want to restore them. For example, NWTTSGetProcessThresholds can query an application for the number of logical and physical record locks allowed before an implicit transaction begins, and NWTTSSetProcessThresholds can perform one of the following:
The default threshold for logical and physical locks is 0. 0xFF means no implicit transactions are allowed for the lock type.
Thresholds returned by NWTTSGetProcessThresholds are valid for the requesting application only. When the application terminates, the connection thresholds are restored.
Both physicalLockLevel and logicalLockLevel are optional parameters. Substitute NULL if these parameters are not to be returned. However, all parameter positions must be filled.