There are two major differences between the OS/2 2.0 version of DosLogEntry and the 1.3 version of the API:
The description of the OS/2 2.0 version of the DosLogEntry API follows:
Syntax
APIRET16 APIENTRY16 DosLogEntry((USHORT) Function, (PVOID) LogData) 32-bit code Example using CSet/2
Parameters
Function
0H
Returns
Return Code.
DosLogEntry returns the following values:
non-zero
Possible reasons for failure:
Remarks
Error Log Data Buffer format description:
Multiple log packets can be included within a single log data buffer. In the following diagram, the size of each field is indicated in bytes:
┌──────────────────────────────────────────────┐ │# of log packets (within the buffer) 2│ ├──────────────────────────────────────────────┤ │length of the current log packet 2│<──┐ ├──────────────────────────────────────────────┤ │ │Error Log record I.D. 2│ │ ├──────────────────────────────────────────────┤ │ │time of logging 4│ │ multiple ├──────────────────────────────────────────────┤ │ log packets │date of logging 4│ │ within a ├──────────────────────────────────────────────┤ │ single log │originator name 8│ │ data buffer ├──────────────────────────────────────────────┤ │ │qualifier name 4│ │ ├──────────────────────────────────────────────┤ │ │Error Log entry data <= 1024│<──┘ └──────────────────────────────────────────────┘
Where:
In order to successfully resolve DosLogEntry function calls in your program, the following lines must be added to the Linker Definition (DEF) file:
IMPORTS DOSLOGENTRY=DOSCALL1.193