LOCKDesc (lock descriptor)

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

LOCKDesc (lock descriptor)

Return to chapter overview

The LOCKDesc structure describes a lock, using the following fields:

Field

Type

Description

iType

UINT16

Specifies the lock type (0 for record lock).

szUserName

DBIUSERNAME

Specifies the user name.

iNetSession

UINT16

Specifies the net level session number.

iSession

UINT16

Specifies the BDE session number, if BDE lock.

iRecNum

UINT32

Specifies the record number for the record lock, if this is a record lock.

iInfo

UINT16

Specifies information for table locks (Paradox only).

iType

The following table shows valid values:

Value

Description

0

Record lock

4

No table lock

5

Table read lock

6

Table write lock

7

Table opened exclusively

Note:Record write lock and record lock are the same. Record write lock is more descriptive.