UserLogEntry
Allows a user specified message to be written to the transaction logs.
Short Name
TRANUSR()
Declaration
The function declaration is as follows:
LONG UserLogEntry(FILNO filno, LONG poshw, LONG poslw, LONG offset,
LONG attribute, pVOID buffer, VRLEN bufsiz)
Description
In V12 the file number typedef was formally changed from COUNT, a two-byte value to FILNO, a four-byte value. Refer to this link for compatibility details. Four Byte File Numbering
UserLogEntry() returns the low-order word of the transaction number associated with the log entry. A return value of zero indicates an error and uerr_cod contains the error number. The high-order word of the transaction number is returned by a call to ctGETHGH() after a successful call to UserLogEntry().
Note: If the integer is odd, then the log entry is not part of a transaction, and it is assigned its own “transaction” number and is written immediately into the log buffer.