KISAMReadHoldRowid

int KISAMReadHoldRowid(KHAND handle, char *lpRecbuf, ROWID rowid)

Parameter Type Purpose
handle KHAND handle of table to be searched
lpRecbuf char * record buffer to receive the row. May be NULL if only key required.
lpKeybuf char * buffer to hold the key. May be NULL if not required.

This can lock and read a record knowing its rowid. It will fail with KE_LOCKED (12) if already locked by another process.